aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorMartin Schiller <ms@dev.tdt.de>2019-01-10 08:59:31 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2019-01-27 01:04:53 +0100
commit654124b1afe4a2a13fe8202e9389d656c770fe00 (patch)
treee8e01ec54f8252f18b1dd911f5706895db6f0563 /target
parentbe1d70e0a208d7fdf1b432fed68cc6fc1cc670e5 (diff)
downloadupstream-654124b1afe4a2a13fe8202e9389d656c770fe00.tar.gz
upstream-654124b1afe4a2a13fe8202e9389d656c770fe00.tar.bz2
upstream-654124b1afe4a2a13fe8202e9389d656c770fe00.zip
lantiq/led_dsl: Fix netdev led trigger
In the upstream netdev led trigger the one mode file was replaced by 3 files named rx, tx and link. Fix the netdev trigger configuration code to use the modified API. This fix is based on 201058b35ce ("base-files: Fix netdev led trigger") Fixes: aa3b6a08c56 ("kernel: Replace ledtrig-netdev with upstream backport") Signed-off-by: Martin Schiller <ms@dev.tdt.de>
Diffstat (limited to 'target')
-rwxr-xr-xtarget/linux/lantiq/base-files/etc/hotplug.d/dsl/led_dsl.sh4
1 files changed, 3 insertions, 1 deletions
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 0bf749c56d..dd8e84a1af 100755
--- 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