aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files/etc/board.d/01_leds
diff options
context:
space:
mode:
authorChuanhong Guo <gch981213@gmail.com>2017-12-29 12:35:32 +0800
committerMathias Kresin <dev@kresin.me>2018-01-09 22:05:46 +0100
commita657978fe7ff4cacc97c753961b75de547e5d5d9 (patch)
tree2159e0ebc8ca8b74bd63ddeb1617f56c6fdc80ca /target/linux/ramips/base-files/etc/board.d/01_leds
parent6912e55e7106bf4130185dc018324ac9675328e0 (diff)
downloadupstream-a657978fe7ff4cacc97c753961b75de547e5d5d9.tar.gz
upstream-a657978fe7ff4cacc97c753961b75de547e5d5d9.tar.bz2
upstream-a657978fe7ff4cacc97c753961b75de547e5d5d9.zip
ramips: fix lenovo newifi-y1 switch and LED config
There are 3 ethernet ports on Y1. LAN1 on port1, LAN2 on port0 and WAN on port4. Use a standalone switch configuration to match this and use the switch trigger so that LAN LED could indicate the connetction status for both lan ports correctly. This patch also drop the internet led configuration, because there is a WAN led for port4 and eth0.2 isn't always used as WAN. Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
Diffstat (limited to 'target/linux/ramips/base-files/etc/board.d/01_leds')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/01_leds3
1 files changed, 1 insertions, 2 deletions
diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds
index 03d084f17b..55976edec8 100755
--- a/target/linux/ramips/base-files/etc/board.d/01_leds
+++ b/target/linux/ramips/base-files/etc/board.d/01_leds
@@ -453,8 +453,7 @@ y1)
set_usb_led "$boardname:blue:usb"
ucidef_set_led_netdev "wifi" "WIFI" "$boardname:blue:wifi" "wlan1"
ucidef_set_led_netdev "wifi5g" "WIFI5G" "$boardname:blue:wifi5g" "wlan0"
- ucidef_set_led_netdev "lan" "LAN" "$boardname:blue:lan" "eth0.1" "tx rx"
- ucidef_set_led_netdev "wan" "WAN" "$boardname:blue:internet" "eth0.2" "tx rx"
+ ucidef_set_led_switch "lan" "LAN" "$boardname:blue:lan" "switch0" "0x03"
;;
y1s)
set_usb_led "$boardname:blue:usb"