aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorP.Wassi <p.wassi@gmx.at>2016-07-26 19:18:53 +0200
committerJohn Crispin <john@phrozen.org>2016-07-24 06:38:30 +0200
commit525b9edc8a5b88a576ce522fbb4e9f326a794581 (patch)
treea6eab2c34ad90aa93adda01f11db15507a638ada /target
parent42305ae24aa7ce95824d3b2303a40ab211f1a766 (diff)
downloadupstream-525b9edc8a5b88a576ce522fbb4e9f326a794581.tar.gz
upstream-525b9edc8a5b88a576ce522fbb4e9f326a794581.tar.bz2
upstream-525b9edc8a5b88a576ce522fbb4e9f326a794581.zip
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: P.Wassi <p.wassi@gmx.at>
Diffstat (limited to 'target')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/01_leds4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds
index 8636a46daa..fc69f33600 100755
--- 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}"
}