Skip to content
Snippets Groups Projects
Commit 525b9edc authored by P.Wassi's avatar P.Wassi Committed by John Crispin
Browse files

ramips: unify etc/board.d/01_leds configuration


Introduce an optional parameter at the local set_usb_led and
set_wifi_led function such that they can take a triggering
device. If no parameter is passed, behaviour is unchanged.
Signed-off-by: default avatarP.Wassi <p.wassi@gmx.at>
parent 42305ae2
No related branches found
No related tags found
No related merge requests found
......@@ -4,11 +4,11 @@
. /lib/ramips.sh
set_usb_led() {
ucidef_set_led_usbdev "usb" "USB" "$1" "1-1"
ucidef_set_led_usbdev "usb" "USB" "${1}" "${2:-1-1}"
}
set_wifi_led() {
ucidef_set_led_netdev "wifi_led" "wifi" "$1" "wlan0"
ucidef_set_led_netdev "wifi_led" "wifi" "${1}" "${2:-wlan0}"
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment