This patch adds all the required stuff for vlan switch, sysupgrade to work It also sets the default led configuration.
Signed-off-by: Andrew 'Necromant' Andrianov <[email protected]> --- .../linux/ar71xx/base-files/etc/uci-defaults/leds | 9 +++++++++ .../ar71xx/base-files/etc/uci-defaults/network | 3 ++- target/linux/ar71xx/base-files/lib/ar71xx.sh | 3 +++ .../ar71xx/base-files/lib/upgrade/platform.sh | 3 ++- 4 files changed, 16 insertions(+), 2 deletions(-) diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/leds b/target/linux/ar71xx/base-files/etc/uci-defaults/leds index e32d33d..69201ae 100755 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/leds +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/leds @@ -40,6 +40,15 @@ dir-615-e4) ucidef_set_led_switch "lan4" "LAN4" "d-link:green:lan4" "switch0" "0x10" ;; +mercury-mw150r) + ucidef_set_led_netdev "wan" "WAN" "mercury:green:wan" "eth1" + ucidef_set_led_switch "lan1" "LAN1" "mercury:green:lan1" "switch0" "0x02" + ucidef_set_led_switch "lan2" "LAN2" "mercury:green:lan2" "switch0" "0x04" + ucidef_set_led_switch "lan3" "LAN3" "mercury:green:lan3" "switch0" "0x08" + ucidef_set_led_switch "lan4" "LAN4" "mercury:green:lan4" "switch0" "0x10" + ucidef_set_led_wlan "wlan" "WLAN" "mercury:green:wlan" "phy0tpt" + ;; + dir-825-b1) ucidef_set_led_usbdev "usb" "USB" "d-link:blue:usb" "1-1" ;; diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/network b/target/linux/ar71xx/base-files/etc/uci-defaults/network index 3a5b704..62754a4 100755 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/network +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/network @@ -173,7 +173,8 @@ tl-wr841n-v7 |\ whr-g301n |\ whr-hp-g300n |\ whr-hp-gn |\ -wzr-hp-ag300h) +wzr-hp-ag300h |\ +mercury-mw150r) ucidef_set_interfaces_lan_wan "eth0" "eth1" ucidef_add_switch "eth0" "1" "1" ucidef_add_switch_vlan "eth0" "1" "0 1 2 3 4" diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 4d21caf..95a5085 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -396,6 +396,9 @@ ar71xx_board_detect() { *EmbWir-Dorin) name="ew-dorin" ;; + *"Mercury MW150R") + name="mercury-mw150r" + ;; esac case "$machine" in diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index 5e5a54f..db6ff92 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -146,7 +146,8 @@ platform_check_image() { tl-wr941nd | \ tl-wr1041n-v2 | \ tl-wr1043nd | \ - tl-wr2543n) + tl-wr2543n | \ + mercury-mw150r) [ "$magic" != "0100" ] && { echo "Invalid image type." return 1 -- 1.7.6 _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
