diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-12-29 17:50:38 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-12-29 17:50:38 +0000 |
commit | 8568406448bbc76e68204064656eac2a10b5bd7b (patch) | |
tree | 7ee7a1c7f00b0800d4165f57b88989cb98cd6015 /target/linux/ramips/base-files/etc | |
parent | bff7d5f388cf99f305f0180fc052510730ed3744 (diff) | |
download | upstream-8568406448bbc76e68204064656eac2a10b5bd7b.tar.gz upstream-8568406448bbc76e68204064656eac2a10b5bd7b.tar.bz2 upstream-8568406448bbc76e68204064656eac2a10b5bd7b.zip |
ramips: add user-space support for the Planex MZK-W300NH2 Router
Signed-off-by: Samir Ibradžić <sibradzic@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/3077/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34926 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/base-files/etc')
4 files changed, 15 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh index d189db518d..af05aceded 100755 --- a/target/linux/ramips/base-files/etc/diag.sh +++ b/target/linux/ramips/base-files/etc/diag.sh @@ -122,6 +122,9 @@ get_status_led() { wr512-3gn) status_led="wr512:green:wps" ;; + mzk-w300nh2) + status_led="mzkw300nh2:green:power" + ;; ur-336un) status_led="ur336:green:wps" ;; diff --git a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom index 1a04e5af65..be6975c809 100644 --- a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom +++ b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom @@ -88,6 +88,7 @@ case "$FIRMWARE" in wli-tx4-ag300n | \ wr512-3gn | \ wr6202 | \ + mzk-w300nh2 | \ ur-336un | \ xdxrn502j) rt2x00_eeprom_extract "factory" 0 272 diff --git a/target/linux/ramips/base-files/etc/uci-defaults/leds b/target/linux/ramips/base-files/etc/uci-defaults/leds index a37901743d..b4dcdd1947 100755 --- a/target/linux/ramips/base-files/etc/uci-defaults/leds +++ b/target/linux/ramips/base-files/etc/uci-defaults/leds @@ -69,6 +69,9 @@ case $board in mofi3500-3gn) set_usb_led "mofi3500-3gn:green:usb" ;; + mzk-w300nh2) + set_wifi_led "mzkw300nh2:amber:wlan" + ;; nw718) set_usb_led "nw718:amber:usb" ;; diff --git a/target/linux/ramips/base-files/etc/uci-defaults/network b/target/linux/ramips/base-files/etc/uci-defaults/network index 5ab89e9d97..598074bb19 100755 --- a/target/linux/ramips/base-files/etc/uci-defaults/network +++ b/target/linux/ramips/base-files/etc/uci-defaults/network @@ -71,6 +71,13 @@ ramips_setup_interfaces() ucidef_add_switch_vlan "switch0" "2" "0 6t" ;; + mzk-w300nh2) + ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" + ucidef_add_switch "switch0" "1" "1" + ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 6t" + ucidef_add_switch_vlan "switch0" "2" "4 6t" + ;; + f5d8235-v1 | \ f5d8235-v2 | \ ur-336un) @@ -145,6 +152,7 @@ ramips_setup_macs() bc2 | \ broadway | \ f5d8235-v1 | \ + mzk-w300nh2 | \ nw718 | \ psr-680w | \ rt-n15 | \ |