ar71xx: add user-space support for the WNR612 v2 board
authorGabor Juhos <juhosg@openwrt.org>
Sun, 28 Jul 2013 10:23:37 +0000 (10:23 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Sun, 28 Jul 2013 10:23:37 +0000 (10:23 +0000)
Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/3876/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 37576

target/linux/ar71xx/base-files/etc/diag.sh
target/linux/ar71xx/base-files/etc/uci-defaults/02_network
target/linux/ar71xx/base-files/lib/ar71xx.sh
target/linux/ar71xx/base-files/lib/upgrade/platform.sh

index 85458c27fdbd735dd14c2ade9000242f6ddca835..48c30eeabfc7dcb4cf323872a6815d3840c88d88 100755 (executable)
@@ -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"
                ;;
index fd2ade8b7bf7469741f953e6a036a89d9f7a6bd2..3d097511cbf61573dbacf6d5117e92c3b4b2f2e8 100755 (executable)
@@ -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"
index d20b16751123890d540ac325332a28b6596c2bb5..14fdfb1e8fe2f97fd9409eebce3bf5067c96d8bf 100755 (executable)
@@ -501,6 +501,9 @@ ar71xx_board_detect() {
        *WNR2000)
                name="wnr2000"
                ;;
+       *"WNR612 V2")
+               name="wnr612-v2"
+               ;;
        *WRT160NL)
                name="wrt160nl"
                ;;
index 01bf16030a0be4ce3a5917e20e3faef740628dca..308b4f14b0213ea58fbdb82f7a05a0787dbfd55b 100755 (executable)
@@ -215,7 +215,8 @@ platform_check_image() {
                }
                return 0
                ;;
-       wndr3700)
+       wndr3700 | \
+       wnr612-v2)
                local hw_magic
 
                hw_magic="$(ar71xx_get_mtd_part_magic firmware)"