summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/ar71xx.sh3
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/upgrade/platform.sh3
5 files changed, 19 insertions, 3 deletions
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index 5d70cdb..d37223f 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 ca57fbb..a7eeab0 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 8114ed4..000b773 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
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index 5f300df..ce78367 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -321,6 +321,9 @@ ar71xx_board_detect() {
*"My Net N600")
name="mynet-n600"
;;
+ *"My Net N750")
+ name="mynet-n750"
+ ;;
*"WD My Net Wi-Fi Range Extender")
name="mynet-rext"
;;
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index 3c988ef..a51cbde 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -177,7 +177,8 @@ platform_check_image() {
return 1
;;
- mynet-n600)
+ mynet-n600 | \
+ mynet-n750)
[ "$magic_long" != "5ea3a417" ] && {
echo "Invalid image, bad magic: $magic_long"
return 1