aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ipq806x/base-files/etc
diff options
context:
space:
mode:
authorDavid Bauer <mail@david-bauer.net>2019-11-04 18:48:20 +0100
committerDavid Bauer <mail@david-bauer.net>2019-11-04 18:50:53 +0100
commit70d5989c9c99788a9b2a1a737987edcf7e1ae382 (patch)
tree2903f525d69c0d9ea2fcfd24a0f84b83f09a17e0 /target/linux/ipq806x/base-files/etc
parent3034f8c3b85e70b1dd9b4cd5cd33e9d2cd8be3b8 (diff)
downloadupstream-70d5989c9c99788a9b2a1a737987edcf7e1ae382.tar.gz
upstream-70d5989c9c99788a9b2a1a737987edcf7e1ae382.tar.bz2
upstream-70d5989c9c99788a9b2a1a737987edcf7e1ae382.zip
ipq806x: use switch trigger for WAN LED on NETGEAR boards
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 <mail@david-bauer.net>
Diffstat (limited to 'target/linux/ipq806x/base-files/etc')
-rwxr-xr-xtarget/linux/ipq806x/base-files/etc/board.d/01_leds2
1 files changed, 1 insertions, 1 deletions
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 68b2c19bdf..f8b6c32358 100755
--- 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" "eth0"
+ ucidef_set_led_switch "wan" "WAN" "${boardname}:white:wan" "switch0" "0x20"
ucidef_set_led_ide "esata" "eSATA" "${boardname}:white:esata"
;;
tplink,c2600)