diff options
author | Wojciech Jowsa <w.jowsa@radytek.com> | 2017-02-15 12:38:07 +0100 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2017-03-06 07:50:11 +0100 |
commit | f223c4a9230f520f27bf0e1c458335b79935805a (patch) | |
tree | 8205c144f6e55f0d551465003c47ed089c75124a /target/linux/ar71xx/base-files | |
parent | 787cb58574285e0b968d7612528f9d7ae81395da (diff) | |
download | upstream-f223c4a9230f520f27bf0e1c458335b79935805a.tar.gz upstream-f223c4a9230f520f27bf0e1c458335b79935805a.tar.bz2 upstream-f223c4a9230f520f27bf0e1c458335b79935805a.zip |
ar71xx: set status led for the gl-* boards
Signed-off-by: Wojciech Jowsa <w.jowsa@radytek.com>
Diffstat (limited to 'target/linux/ar71xx/base-files')
-rwxr-xr-x | target/linux/ar71xx/base-files/etc/board.d/01_leds | 21 | ||||
-rw-r--r-- | target/linux/ar71xx/base-files/etc/diag.sh | 4 |
2 files changed, 13 insertions, 12 deletions
diff --git a/target/linux/ar71xx/base-files/etc/board.d/01_leds b/target/linux/ar71xx/base-files/etc/board.d/01_leds index 4dc4bfd51d..0ed533dddb 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/01_leds +++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds @@ -312,19 +312,18 @@ dlan-pro-1200-ac) ucidef_set_led_gpio "plcw" "dLAN" "devolo:status:dlan" "17" "0" ucidef_set_led_gpio "plcr" "dLAN" "devolo:error:dlan" "16" "0" ;; -gl-ar150|\ -gl-ar300|\ -gl-ar300m|\ +gl-ar300m) + ucidef_set_led_wlan "wlan" "WLAN" "$board:red:wlan" "phy0tpt" + ;; gl-mifi) + ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt" + ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth0" + ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth1" + ucidef_set_led_netdev "3gnet" "3GNET" "$board:green:net" "3g-wan" + ;; +gl-ar150|\ +gl-ar300) ucidef_set_led_wlan "wlan" "WLAN" "$board:wlan" "phy0tpt" - - case "$board" in - gl-mifi) - ucidef_set_led_netdev "wan" "WAN" "$board:wan" "eth0" - ucidef_set_led_netdev "lan" "LAN" "$board:lan" "eth1" - ucidef_set_led_netdev "3gnet" "3GNET" "$board:net" "3g-wan" - ;; - esac ;; gl-domino|\ sc300m|\ diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index 106464105a..7987e51a67 100644 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -61,7 +61,9 @@ get_status_led() { ap90q|\ cpe830|\ cpe870|\ - gl-inet) + gl-inet|\ + gl-mifi|\ + gl-ar300m) status_led="$board:green:lan" ;; ap96) |