[source] ipq806x: c2600: change wan and lan led trigger to swconfig port

LEDE Commits lede-commits at lists.infradead.org
Mon Nov 21 01:57:59 PST 2016


blogic pushed a commit to source.git, branch master:
https://git.lede-project.org/c380772c19f7fdc77b9aa83f98e5aedc14ac3153

commit c380772c19f7fdc77b9aa83f98e5aedc14ac3153
Author: Henryk Heisig <hyniu at o2.pl>
AuthorDate: Fri Nov 18 00:24:52 2016 +0100

    ipq806x: c2600: change wan and lan led trigger to swconfig port
    
    Signed-off-by: Henryk Heisig <hyniu at o2.pl>
---
 target/linux/ipq806x/base-files/etc/board.d/01_leds | 4 ++--
 1 file changed, 2 insertions(+), 2 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 1f3d313..e4dc820 100755
--- a/target/linux/ipq806x/base-files/etc/board.d/01_leds
+++ b/target/linux/ipq806x/base-files/etc/board.d/01_leds
@@ -14,8 +14,8 @@ case "$board" in
 c2600)
 	ucidef_set_led_usbport "usb1" "USB 1" "${board}:white:usb_2" "usb1-port1" "usb2-port1"
 	ucidef_set_led_usbport "usb2" "USB 2" "${board}:white:usb_4" "usb3-port1" "usb4-port1"
-	ucidef_set_led_netdev "wan" "WAN" "${board}:white:wan" "eth0"
-	ucidef_set_led_netdev "lan" "LAN" "${board}:white:lan" "eth1"
+	ucidef_set_led_switch "wan" "wan" "${board}:white:wan" "switch0" "0x20"
+	ucidef_set_led_switch "lan" "lan" "${board}:white:lan" "switch0" "0x1e"
 	ucidef_set_led_default "general" "general" "${board}:white:ledgnr" "1"
 	;;
 d7800 |\



More information about the lede-commits mailing list