ar71xx: add user-space support for GL.iNet v1
authorGabor Juhos <juhosg@openwrt.org>
Sun, 13 Jul 2014 18:21:06 +0000 (18:21 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Sun, 13 Jul 2014 18:21:06 +0000 (18:21 +0000)
Patch is based on http://patchwork.openwrt.org/patch/5273/.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Michel Stempin <michel.stempin@wanadoo.fr>
Signed-off-by: Mark Janssen <mark@sig-io.nl>
Signed-off-by: alzhao <alzhao@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/5652/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 41619

target/linux/ar71xx/base-files/etc/diag.sh
target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
target/linux/ar71xx/base-files/etc/uci-defaults/02_network
target/linux/ar71xx/base-files/lib/ar71xx.sh
target/linux/ar71xx/base-files/lib/preinit/05_set_preinit_iface_ar71xx
target/linux/ar71xx/base-files/lib/upgrade/platform.sh

index f6c113e86fcc12875e00087ee96ed6af3388376c..c689e7038ca479035ebabb39e550654959d6aff1 100755 (executable)
@@ -69,6 +69,9 @@ get_status_led() {
        el-m150)
                status_led="EasyLink:green:system"
                ;;
+       gl-inet)
+               status_led="gl-connect:green:lan"
+               ;;
        hiwifi-hc6361)
                status_led="hiwifi:blue:system"
                ;;
index 2e68efa9dc79d077e8dcf4106399cb545e686327..13d6faf6bc7eff1e45b6b26d0e1c159923ad48a9 100755 (executable)
@@ -104,6 +104,11 @@ dir-825-c1)
        ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "d-link:blue:wlan2g" "phy0tpt"
        ;;
 
+gl-inet)
+       ucidef_set_led_netdev "lan" "LAN" "gl-connect:green:lan" "eth1"
+       ucidef_set_led_wlan "wlan" "WLAN" "gl-connect:red:wlan" "phy0tpt"
+       ;;
+
 hiwifi-hc6361)
        ucidef_set_led_default "inet" "INET" "hiwifi:blue:internet" "0"
        ucidef_set_led_wlan "wlan" "WLAN" "hiwifi:blue:wlan-2p4" "phy0tpt"
index cebc70ae8d483450b32309ee78a29f05d1e677e7..63422daa3019d498976ab5c0e32af600d6b3e999 100755 (executable)
@@ -289,6 +289,7 @@ dir-505-a1)
 alfa-ap96 |\
 alfa-nx |\
 ap83 |\
+gl-inet |\
 jwap003 |\
 pb42 |\
 pb44 |\
index 2d75954db59a92c84348bb6f72e79f26d50013b1..f91215694430dc6d8ca229a163a51db23beab32f 100755 (executable)
@@ -322,6 +322,9 @@ ar71xx_board_detect() {
        *EL-MINI)
                name="el-mini"
                ;;
+       *"GL-CONNECT INET v1")
+               name="gl-inet"
+               ;;
        *JA76PF)
                name="ja76pf"
                ;;
index 31a2dd78d274e683222bc607a090c94c6ddeb79e..47b008242dcf55aa3ea91331b5406a15cf320b10 100644 (file)
@@ -15,6 +15,7 @@ set_preinit_iface() {
        ap83 |\
        archer-c7 |\
        dir-505-a1 |\
+       gl-inet |\
        jwap003 |\
        pb42 |\
        pb44 |\
index f7c3b9a04e7545b9a4be2d8d77f43cbfdde7a2d3..e1116182883f8d6b1d5b43a1e85f8aec8b618048 100755 (executable)
@@ -226,6 +226,7 @@ platform_check_image() {
        archer-c7 | \
        el-m150 | \
        el-mini | \
+       gl-inet | \
        oolite | \
        tl-mr10u | \
        tl-mr11u | \