ar71xx: use Power-LED as Diag-LED on FRITZBox 4020
authorDavid Bauer <mail@david-bauer.net>
Fri, 8 Jun 2018 19:42:52 +0000 (21:42 +0200)
committerMathias Kresin <dev@kresin.me>
Sat, 9 Jun 2018 11:45:29 +0000 (13:45 +0200)
This commit makes use of the Power-LED as Diag-LED, allowing the LED to
work as a status indicator.

Signed-off-by: David Bauer <mail@david-bauer.net>
target/linux/ar71xx/base-files/etc/board.d/01_leds
target/linux/ar71xx/base-files/etc/diag.sh

index b53aafb0ee446671772fdd21cc6bd03e0ddb9a06..8dc1a3641639ea0f89073e64056534f81d8a801d 100755 (executable)
@@ -373,7 +373,6 @@ epg5000)
        ucidef_set_led_wlan "wlan5g" "WLAN 5 GHz" "$board:blue:wlan-5g" "phy0tpt"
        ;;
 fritz4020)
-       ucidef_set_led_default "power" "Power" "$board:green:power" "1"
        ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth1"
        ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth0"
        ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
index 1530dded12c95fc8820df9512a01802960ca417b..f1f498053243e75e47c49d1646d15672d09e982b 100644 (file)
@@ -67,6 +67,7 @@ get_status_led() {
        archer-c60-v2|\
        archer-c7-v4|\
        fritz300e|\
+       fritz4020|\
        gl-usb150|\
        mr12|\
        mr16|\