aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files/etc
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-12-16 07:16:43 +0000
committerGabor Juhos <juhosg@openwrt.org>2013-12-16 07:16:43 +0000
commita4492a16356de2e41726f5b6cd9cb7774937ea07 (patch)
tree58e221ea83d6eb5ea77d36845c375b748c6746c4 /target/linux/ar71xx/base-files/etc
parent31d7d99e60fed8212c2379cad7141179e6eff4dc (diff)
downloadupstream-a4492a16356de2e41726f5b6cd9cb7774937ea07.tar.gz
upstream-a4492a16356de2e41726f5b6cd9cb7774937ea07.tar.bz2
upstream-a4492a16356de2e41726f5b6cd9cb7774937ea07.zip
ar71xx: add userspace support for WD My Net N750
Signed-off-by: Felix Kaechele <heffer@fedoraproject.org> [juhosg: remove the image generation part until the ethernet switch issue is resolved] Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39078 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/base-files/etc')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/diag.sh3
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/uci-defaults/02_network10
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/uci-defaults/09_fix-seama-header3
3 files changed, 14 insertions, 2 deletions
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index 5d70cdb3bc..d37223f950 100755
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -80,7 +80,8 @@ get_status_led() {
mr600v2)
status_led="mr600:blue:power"
;;
- mynet-n600)
+ mynet-n600 | \
+ mynet-n750)
status_led="wd:blue:power"
;;
mynet-rext)
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 ca57fbbcce..a7eeab017c 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
@@ -207,6 +207,16 @@ dir-825-c1)
[ -n "$mac" ] && ucidef_set_interface_macaddr "wan" "$mac"
;;
+mynet-n750)
+ local mac
+ ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
+ ucidef_add_switch "switch0" "1" "1"
+ ucidef_add_switch_vlan "switch0" "1" "0t 1 2 3 4"
+ ucidef_add_switch_vlan "switch0" "2" "0t 5"
+ mac=$(mtd_get_mac_ascii devdata "wanmac")
+ [ -n "$mac" ] && ucidef_set_interface_macaddr "wan" "$mac"
+ ;;
+
dir-835-a1 |\
wndr4300)
ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/09_fix-seama-header b/target/linux/ar71xx/base-files/etc/uci-defaults/09_fix-seama-header
index 8114ed47e6..000b773ed7 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/09_fix-seama-header
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/09_fix-seama-header
@@ -14,7 +14,8 @@ fix_seama_header() {
board=$(ar71xx_board_name)
case "$board" in
-mynet-n600)
+mynet-n600 | \
+mynet-n750)
fix_seama_header kernel
;;
esac