aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-07-10 22:02:28 +0000
committerJohn Crispin <john@openwrt.org>2014-07-10 22:02:28 +0000
commit03faf4618e65079268a7372a13669d5e10869c88 (patch)
tree746bde3f366ce5dc62a4de036d20c9af09971edb /target/linux/ramips/base-files
parentf88fde968988a30b93dcba7f0e1aca171cd61da2 (diff)
downloadupstream-03faf4618e65079268a7372a13669d5e10869c88.tar.gz
upstream-03faf4618e65079268a7372a13669d5e10869c88.tar.bz2
upstream-03faf4618e65079268a7372a13669d5e10869c88.zip
ramips: add support for Zbtlink WA05 router
Signed-off-by: Roman Yeryomin <roman@advem.lv> SVN-Revision: 41579
Diffstat (limited to 'target/linux/ramips/base-files')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/uci-defaults/01_leds5
-rwxr-xr-xtarget/linux/ramips/base-files/etc/uci-defaults/02_network3
-rwxr-xr-xtarget/linux/ramips/base-files/lib/ramips.sh3
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh3
4 files changed, 12 insertions, 2 deletions
diff --git a/target/linux/ramips/base-files/etc/uci-defaults/01_leds b/target/linux/ramips/base-files/etc/uci-defaults/01_leds
index c2f768b8a3..00b604008e 100755
--- a/target/linux/ramips/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/ramips/base-files/etc/uci-defaults/01_leds
@@ -181,6 +181,11 @@ case $board in
ucidef_set_led_default "power" "power" "buffalo:green:power" "1"
ucidef_set_led_default "router" "router" "buffalo:green:router" "1"
;;
+ zbt-wa05)
+ ucidef_set_led_default "power" "power" "zbtlink:blue:power" "1"
+ set_wifi_led "zbtlink:blue:air"
+ set_usb_led "zbtlink:blue:usb"
+ ;;
esac
ucidef_commit_leds
diff --git a/target/linux/ramips/base-files/etc/uci-defaults/02_network b/target/linux/ramips/base-files/etc/uci-defaults/02_network
index 4eef735d93..a14acb6252 100755
--- a/target/linux/ramips/base-files/etc/uci-defaults/02_network
+++ b/target/linux/ramips/base-files/etc/uci-defaults/02_network
@@ -112,7 +112,8 @@ ramips_setup_interfaces()
hg255d | \
rt-n14u | \
wrtnode | \
- ur-326n4g)
+ ur-326n4g | \
+ zbt-wa05)
ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
ucidef_add_switch "switch0" "1" "1"
ucidef_add_switch_vlan "switch0" "1" "1 2 3 4 6t"
diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
index ca339b354c..2ae8c9e8ff 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -307,6 +307,9 @@ ramips_board_detect() {
*"Sercomm NA930")
name="na930"
;;
+ *"Zbtlink ZBT-WA05")
+ name="zbt-wa05"
+ ;;
*)
name="generic"
;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index a39c433e8f..805a63fed4 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -91,7 +91,8 @@ platform_check_image() {
wmr300 |\
wrtnode |\
x5 |\
- x8)
+ x8 |\
+ zbt-wa05)
[ "$magic" != "27051956" ] && {
echo "Invalid image type."
return 1