mirror of https://github.com/hak5/openwrt.git
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 onopenwrt-19.07201058b35c
("base-files: Fix netdev led trigger") Fixes:aa3b6a08c5
("kernel: Replace ledtrig-netdev with upstream backport") Signed-off-by: Martin Schiller <ms@dev.tdt.de>
parent
be1d70e0a2
commit
654124b1af
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue