aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-11-02 10:18:19 +0000
committerJohn Crispin <blogic@openwrt.org>2015-11-02 10:18:19 +0000
commit85938c534eee7d4399d2a04aaeb137d5c075daf7 (patch)
tree2b765f0879c99e35c1655ead32cf19a547f0bbfb /target/linux/ramips/base-files
parent9da2c4b3f85857c9b03542285063e6a15ec754a5 (diff)
downloadmaster-187ad058-85938c534eee7d4399d2a04aaeb137d5c075daf7.tar.gz
master-187ad058-85938c534eee7d4399d2a04aaeb137d5c075daf7.tar.bz2
master-187ad058-85938c534eee7d4399d2a04aaeb137d5c075daf7.zip
ramips: add support for ZBT WG2626
Signed-off-by: Daniel Golle <daniel@makrotopia.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47351 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/base-files')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/02_network3
-rw-r--r--target/linux/ramips/base-files/etc/diag.sh3
-rwxr-xr-xtarget/linux/ramips/base-files/lib/ramips.sh3
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh1
4 files changed, 8 insertions, 2 deletions
diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network
index 21e3641778..382174298a 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -83,7 +83,8 @@ ramips_setup_interfaces()
wsr-1166|\
wsr-600|\
wt1520|\
- y1)
+ y1|\
+ zbt-wg2626)
ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
ucidef_add_switch "switch0" "1" "1"
ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 6t"
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh
index 537675960f..e0dd92ab97 100644
--- a/target/linux/ramips/base-files/etc/diag.sh
+++ b/target/linux/ramips/base-files/etc/diag.sh
@@ -62,7 +62,8 @@ get_status_led() {
rut5xx|\
v11st-fe|\
vocore|\
- wmr-300)
+ wmr-300|\
+ zbt-wg2626)
status_led="$board:green:status"
;;
atp-52b|\
diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
index 2ed09c9b33..62a79c505c 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -454,6 +454,9 @@ ramips_board_detect() {
*"ZBT-WA05")
name="zbt-wa05"
;;
+ *"ZBT-WG2626")
+ name="zbt-wg2626"
+ ;;
*"ZBT-WR8305RT")
name="zbt-wr8305rt"
;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index 33ec8cc854..3d4b73afb6 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -132,6 +132,7 @@ platform_check_image() {
y1|\
y1s|\
zbt-wa05|\
+ zbt-wg2626|\
zbt-wr8305rt|\
zte-q7)
[ "$magic" != "27051956" ] && {