mirror of https://github.com/hak5/openwrt.git
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>master
parent
95dfeabf26
commit
a293db2103
|
@ -204,7 +204,7 @@ hauppauge,broadway)
|
||||||
set_wifi_led "$boardname:red:wps_active"
|
set_wifi_led "$boardname:red:wps_active"
|
||||||
;;
|
;;
|
||||||
hiwifi,hc5661)
|
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"
|
set_wifi_led "$boardname:blue:wlan2g"
|
||||||
;;
|
;;
|
||||||
hiwifi,hc5661a|\
|
hiwifi,hc5661a|\
|
||||||
|
@ -212,9 +212,13 @@ hiwifi,hc5761a|\
|
||||||
xzwifi,creativebox-v1)
|
xzwifi,creativebox-v1)
|
||||||
ucidef_set_led_switch "internet" "internet" "$boardname:blue:internet" "switch0" "0x10"
|
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)
|
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 "wifi5g" "wifi5g" "$boardname:blue:wlan5g" "wlan0"
|
||||||
ucidef_set_led_netdev "wifi2g" "wifi2g" "$boardname:blue:wlan2g" "wlan1"
|
ucidef_set_led_netdev "wifi2g" "wifi2g" "$boardname:blue:wlan2g" "wlan1"
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue