From 41d136f2c88e70aea3c9c536ff7361b4e181c6b9 Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Sun, 28 Jul 2013 10:23:37 +0000 Subject: [PATCH] ar71xx: add user-space support for the WNR612 v2 board Signed-off-by: Cezary Jackiewicz Patchwork: http://patchwork.openwrt.org/patch/3876/ Signed-off-by: Gabor Juhos SVN-Revision: 37576 --- target/linux/ar71xx/base-files/etc/diag.sh | 3 +++ target/linux/ar71xx/base-files/etc/uci-defaults/02_network | 3 ++- target/linux/ar71xx/base-files/lib/ar71xx.sh | 3 +++ target/linux/ar71xx/base-files/lib/upgrade/platform.sh | 3 ++- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index 85458c27fd..48c30eeabf 100755 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -174,6 +174,9 @@ get_status_led() { wnr2000) status_led="wnr2000:green:power" ;; + wnr612-v2) + status_led="wnr612v2:green:power" + ;; wp543) status_led="wp543:green:diag" ;; 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 fd2ade8b7b..3d097511cb 100755 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network @@ -168,7 +168,8 @@ tl-wr941nd) tl-mr3420-v2 |\ tl-wr841n-v8 |\ -wnr2000-v3) +wnr2000-v3 |\ +wnr612-v2) ucidef_set_interfaces_lan_wan "eth1" "eth0" ucidef_add_switch "switch0" "1" "1" ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 4" diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index d20b167511..14fdfb1e8f 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -501,6 +501,9 @@ ar71xx_board_detect() { *WNR2000) name="wnr2000" ;; + *"WNR612 V2") + name="wnr612-v2" + ;; *WRT160NL) name="wrt160nl" ;; diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index 01bf16030a..308b4f14b0 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -215,7 +215,8 @@ platform_check_image() { } return 0 ;; - wndr3700) + wndr3700 | \ + wnr612-v2) local hw_magic hw_magic="$(ar71xx_get_mtd_part_magic firmware)" -- 2.30.2