aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files/etc
diff options
context:
space:
mode:
authorChen Minqiang <ptpt52@gmail.com>2019-03-06 19:04:26 +0800
committerChuanhong Guo <gch981213@gmail.com>2019-08-17 23:52:34 +0800
commita293db210333afc98d807cf1008e417fda7ff102 (patch)
treeefdc3cdd6080ecc1cec184147c8e7bd0fd9bc75e /target/linux/ramips/base-files/etc
parent95dfeabf268a9eafed70c5dfa67a7a744921ac42 (diff)
downloadupstream-a293db210333afc98d807cf1008e417fda7ff102.tar.gz
upstream-a293db210333afc98d807cf1008e417fda7ff102.tar.bz2
upstream-a293db210333afc98d807cf1008e417fda7ff102.zip
ramips: hc5xxx: use switch trigger for leds
netdev on eth0.2 can't show link status of wan port because eth0 is connected to builtin switch and is always link up. Use swconfig trigger instead. Signed-off-by: Chen Minqiang <ptpt52@gmail.com> [redo commit message] Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
Diffstat (limited to 'target/linux/ramips/base-files/etc')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/01_leds10
1 files changed, 7 insertions, 3 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 d5ea201279..e54300dafb 100755
--- a/target/linux/ramips/base-files/etc/board.d/01_leds
+++ b/target/linux/ramips/base-files/etc/board.d/01_leds
@@ -204,7 +204,7 @@ hauppauge,broadway)
set_wifi_led "$boardname:red:wps_active"
;;
hiwifi,hc5661)
- ucidef_set_led_netdev "internet" "internet" "$boardname:blue:internet" "eth0.2"
+ ucidef_set_led_switch "internet" "internet" "$boardname:blue:internet" "switch0" "0x01"
set_wifi_led "$boardname:blue:wlan2g"
;;
hiwifi,hc5661a|\
@@ -212,9 +212,13 @@ hiwifi,hc5761a|\
xzwifi,creativebox-v1)
ucidef_set_led_switch "internet" "internet" "$boardname:blue:internet" "switch0" "0x10"
;;
-hiwifi,hc5761|\
+hiwifi,hc5761)
+ ucidef_set_led_switch "internet" "internet" "$boardname:blue:internet" "switch0" "0x01"
+ ucidef_set_led_netdev "wifi5g" "wifi5g" "$boardname:blue:wlan5g" "wlan0"
+ ucidef_set_led_netdev "wifi2g" "wifi2g" "$boardname:blue:wlan2g" "wlan1"
+ ;;
hiwifi,hc5861)
- ucidef_set_led_netdev "internet" "internet" "$boardname:blue:internet" "eth0.2"
+ ucidef_set_led_switch "internet" "internet" "$boardname:blue:internet" "switch0" "0x20"
ucidef_set_led_netdev "wifi5g" "wifi5g" "$boardname:blue:wlan5g" "wlan0"
ucidef_set_led_netdev "wifi2g" "wifi2g" "$boardname:blue:wlan2g" "wlan1"
;;