From 03faf4618e65079268a7372a13669d5e10869c88 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Thu, 10 Jul 2014 22:02:28 +0000 Subject: ramips: add support for Zbtlink WA05 router Signed-off-by: Roman Yeryomin SVN-Revision: 41579 --- target/linux/ramips/base-files/etc/uci-defaults/01_leds | 5 +++++ target/linux/ramips/base-files/etc/uci-defaults/02_network | 3 ++- target/linux/ramips/base-files/lib/ramips.sh | 3 +++ target/linux/ramips/base-files/lib/upgrade/platform.sh | 3 ++- 4 files changed, 12 insertions(+), 2 deletions(-) (limited to 'target/linux/ramips/base-files') 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 -- cgit v1.2.3