From: P.Wassi <p.wa...@gmx.at> 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: P.Wassi <p.wa...@gmx.at> --- This allows use of this functions in future devices, which do not use USB 1-1 or wlan0 as triggering device. Simply pass the correct device as second parameter.
linux/ramips/base-files/etc/board.d/01_leds | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -rupN a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds --- a/target/linux/ramips/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/base-files/etc/board.d/01_leds @@ -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}" } _______________________________________________ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev