projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lantiq/led_dsl: Fix netdev led trigger
[openwrt/openwrt.git]
/
target
/
linux
/
lantiq
/
base-files
/
etc
/
hotplug.d
/
dsl
/
led_dsl.sh
diff --git
a/target/linux/lantiq/base-files/etc/hotplug.d/dsl/led_dsl.sh
b/target/linux/lantiq/base-files/etc/hotplug.d/dsl/led_dsl.sh
index 0bf749c56d0fdf3d8e0269c52c9a86de806a6597..dd8e84a1af4267e8c9863e01f4407008281ca401 100755
(executable)
--- a/
target/linux/lantiq/base-files/etc/hotplug.d/dsl/led_dsl.sh
+++ b/
target/linux/lantiq/base-files/etc/hotplug.d/dsl/led_dsl.sh
@@
-10,7
+10,9
@@
led_dsl_up() {
"netdev")
led_set_attr $1 "trigger" "netdev"
led_set_attr $1 "device_name" "$(config_get led_dsl dev)"
- led_set_attr $1 "mode" "$(config_get led_dsl mode)"
+ for m in $(config_get led_dsl mode); do
+ led_set_attr $1 "$m" "1"
+ done
;;
*)
led_on $1