From: Chen Minqiang Date: Wed, 6 Mar 2019 11:04:26 +0000 (+0800) Subject: ramips: hc5xxx: use switch trigger for leds X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a293db210333afc98d807cf1008e417fda7ff102;p=openwrt%2Fstaging%2Fblocktrron.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 [redo commit message] Signed-off-by: Chuanhong Guo --- 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" ;;