projects
/
openwrt
/
staging
/
chunkeey.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bee28ad
)
ipq806x: use switch trigger for WAN LED on NETGEAR boards
author
David Bauer
<
[email protected]
>
Mon, 4 Nov 2019 17:48:20 +0000
(18:48 +0100)
committer
David Bauer
<
[email protected]
>
Tue, 5 Nov 2019 07:55:08 +0000
(08:55 +0100)
With this commit, the WAN LED is triggered by the switch port state
instead of the eth0 netdev.
Otherwise, the LED is always illuminated, regardless of the WAN port
link state.
Signed-off-by: David Bauer <
[email protected]
>
(cherry picked from commit
70d5989c9c99788a9b2a1a737987edcf7e1ae382
)
Signed-off-by: David Bauer <
[email protected]
>
target/linux/ipq806x/base-files/etc/board.d/01_leds
patch
|
blob
|
history
diff --git
a/target/linux/ipq806x/base-files/etc/board.d/01_leds
b/target/linux/ipq806x/base-files/etc/board.d/01_leds
index 68b2c19bdf01f5fdf208d6168cbe9ece0875aad0..f8b6c32358f3709032b3682ed500b3c9c964757b 100755
(executable)
--- a/
target/linux/ipq806x/base-files/etc/board.d/01_leds
+++ b/
target/linux/ipq806x/base-files/etc/board.d/01_leds
@@
-30,7
+30,7
@@
netgear,r7500v2 |\
netgear,r7800)
ucidef_set_led_usbport "usb1" "USB 1" "${boardname}:white:usb1" "usb1-port1" "usb2-port1"
ucidef_set_led_usbport "usb2" "USB 2" "${boardname}:white:usb2" "usb3-port1" "usb4-port1"
- ucidef_set_led_
netdev "wan" "WAN" "${boardname}:white:wan" "eth
0"
+ ucidef_set_led_
switch "wan" "WAN" "${boardname}:white:wan" "switch0" "0x2
0"
ucidef_set_led_ide "esata" "eSATA" "${boardname}:white:esata"
;;
tplink,c2600)