From dadf739365bc058b30b4d1f15ecd8ff7853a13d3 Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Mon, 11 Mar 2013 15:55:15 +0000 Subject: ar71xx: add user space support for dir-835-a1 Signed-off-by: Alexander Stadler Patchwork: http://patchwork.openwrt.org/patch/3425/ Signed-off-by: Gabor Juhos git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35958 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/ar71xx/base-files/etc/diag.sh | 3 ++- target/linux/ar71xx/base-files/etc/uci-defaults/01_leds | 5 +---- 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 | 1 + 5 files changed, 9 insertions(+), 6 deletions(-) (limited to 'target/linux/ar71xx') diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index adf32f12fb..c5ed857cf8 100755 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -50,7 +50,8 @@ get_status_led() { dir-615-c1) status_led="d-link:green:status" ;; - dir-825-b1) + dir-825-b1 |\ + dir-835-a1) status_led="d-link:orange:power" ;; dir-825-c1) diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds index e77464d15b..e3f4c17d6f 100755 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds @@ -60,10 +60,7 @@ dir-615-e4) ucidef_set_led_switch "lan4" "LAN4" "d-link:green:lan4" "switch0" "0x10" ;; -dir-825-b1) - ucidef_set_led_usbdev "usb" "USB" "d-link:blue:usb" "1-1" - ;; - +dir-825-b1 | \ dir-825-c1) ucidef_set_led_usbdev "usb" "USB" "d-link:blue:usb" "1-1" ;; 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 b1f84da605..bc98982f37 100755 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network @@ -175,7 +175,8 @@ wzr-hp-g300nh) ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 5t" ;; -dir-825-c1|\ +dir-825-c1 |\ +dir-835-a1 |\ wndr4300) ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" ucidef_add_switch "switch0" "1" "1" diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 4fd48d5cc0..93f3a81001 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -225,6 +225,9 @@ ar71xx_board_detect() { *"DIR-825 rev. C1") name="dir-825-c1" ;; + *"DIR-835 rev. A1") + name="dir-835-a1" + ;; *EAP7660D) name="eap7660d" ;; diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index c16d184e73..d2538e2172 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -109,6 +109,7 @@ platform_check_image() { dir-615-c1 | \ dir-615-e4 | \ dir-825-c1 | \ + dir-835-a1 | \ ew-dorin | \ ew-dorin-router | \ mzk-w04nu | \ -- cgit v1.2.3