diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2014-07-13 18:21:06 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2014-07-13 18:21:06 +0000 |
commit | 5a79ff3c30f315f6033102eb5a5f90dbcb54d8b7 (patch) | |
tree | b8dba4be19453d9ca3962a19a78b196caf67b403 /target/linux/ar71xx/base-files | |
parent | 4304f21da11dbcdb985c57c0ea93c19f067c55a9 (diff) | |
download | upstream-5a79ff3c30f315f6033102eb5a5f90dbcb54d8b7.tar.gz upstream-5a79ff3c30f315f6033102eb5a5f90dbcb54d8b7.tar.bz2 upstream-5a79ff3c30f315f6033102eb5a5f90dbcb54d8b7.zip |
ar71xx: add user-space support for GL.iNet v1
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41619 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/base-files')
6 files changed, 14 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index f6c113e86f..c689e7038c 100755 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -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" ;; diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds index 2e68efa9dc..13d6faf6bc 100755 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds @@ -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" diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network index cebc70ae8d..63422daa30 100755 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network @@ -289,6 +289,7 @@ dir-505-a1) alfa-ap96 |\ alfa-nx |\ ap83 |\ +gl-inet |\ jwap003 |\ pb42 |\ pb44 |\ diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 2d75954db5..f912156944 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -322,6 +322,9 @@ ar71xx_board_detect() { *EL-MINI) name="el-mini" ;; + *"GL-CONNECT INET v1") + name="gl-inet" + ;; *JA76PF) name="ja76pf" ;; diff --git a/target/linux/ar71xx/base-files/lib/preinit/05_set_preinit_iface_ar71xx b/target/linux/ar71xx/base-files/lib/preinit/05_set_preinit_iface_ar71xx index 31a2dd78d2..47b008242d 100644 --- a/target/linux/ar71xx/base-files/lib/preinit/05_set_preinit_iface_ar71xx +++ b/target/linux/ar71xx/base-files/lib/preinit/05_set_preinit_iface_ar71xx @@ -15,6 +15,7 @@ set_preinit_iface() { ap83 |\ archer-c7 |\ dir-505-a1 |\ + gl-inet |\ jwap003 |\ pb42 |\ pb44 |\ diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index f7c3b9a04e..e111618288 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -226,6 +226,7 @@ platform_check_image() { archer-c7 | \ el-m150 | \ el-mini | \ + gl-inet | \ oolite | \ tl-mr10u | \ tl-mr11u | \ |