From e5839cb1022761ce449329e64e66fe70067f6962 Mon Sep 17 00:00:00 2001 From: jogo Date: Thu, 28 Jul 2011 11:57:51 +0000 Subject: ar71xx: merge WZR-HP-G301NH support into WZR-HP-G300NH Now that we can use a generic name for the switch there is no need for a separate image for the WZR-HP-G301NH. Update the default network config and remove the extra image. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27814 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../base-files/etc/defconfig/wzr-hp-g300nh/network | 4 ++-- .../base-files/etc/defconfig/wzr-hp-g301nh/network | 26 ---------------------- target/linux/ar71xx/base-files/etc/diag.sh | 2 +- .../base-files/etc/uci-defaults/wzr-hp-g300nh | 4 ++-- 4 files changed, 5 insertions(+), 31 deletions(-) delete mode 100644 target/linux/ar71xx/base-files/etc/defconfig/wzr-hp-g301nh/network (limited to 'target/linux/ar71xx/base-files/etc') diff --git a/target/linux/ar71xx/base-files/etc/defconfig/wzr-hp-g300nh/network b/target/linux/ar71xx/base-files/etc/defconfig/wzr-hp-g300nh/network index 79f4799f9..20dd9444d 100644 --- a/target/linux/ar71xx/base-files/etc/defconfig/wzr-hp-g300nh/network +++ b/target/linux/ar71xx/base-files/etc/defconfig/wzr-hp-g300nh/network @@ -16,11 +16,11 @@ config interface wan option proto dhcp config switch - option name rtl8366s + option name switch0 option reset 1 option enable_vlan 1 config switch_vlan - option device rtl8366s + option device switch0 option vlan 1 option ports "0 1 2 3 5t" diff --git a/target/linux/ar71xx/base-files/etc/defconfig/wzr-hp-g301nh/network b/target/linux/ar71xx/base-files/etc/defconfig/wzr-hp-g301nh/network deleted file mode 100644 index 72a4c881d..000000000 --- a/target/linux/ar71xx/base-files/etc/defconfig/wzr-hp-g301nh/network +++ /dev/null @@ -1,26 +0,0 @@ -config interface loopback - option ifname lo - option proto static - option ipaddr 127.0.0.1 - option netmask 255.0.0.0 - -config interface lan - option ifname eth0.1 - option type bridge - option proto static - option ipaddr 192.168.1.1 - option netmask 255.255.255.0 - -config interface wan - option ifname eth1 - option proto dhcp - -config switch - option name rtl8366rb - option reset 1 - option enable_vlan 1 - -config switch_vlan - option device rtl8366rb - option vlan 1 - option ports "0 1 2 3 5t" diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index 6cd6043f8..d61a78d83 100755 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -123,7 +123,7 @@ get_status_led() { wrt160nl) status_led="wrt160nl:blue:wps" ;; - wzr-hp-g300nh | wzr-hp-g301nh) + wzr-hp-g300nh) status_led="wzr-hp-g300nh:green:router" ;; zcn-1523h-2 | zcn-1523h-5) diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/wzr-hp-g300nh b/target/linux/ar71xx/base-files/etc/uci-defaults/wzr-hp-g300nh index db8d9f489..1308a7bb0 100755 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/wzr-hp-g300nh +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/wzr-hp-g300nh @@ -32,6 +32,6 @@ commit system EOF } -if [ "${board}" == "wzr-hp-g300nh" -o "${board}" == "wzr-hp-g301nh" ]; then +if [ "${board}" == "wzr-hp-g300nh" ]; then wzrhpg300nh_set_leds -fi \ No newline at end of file +fi -- cgit v1.2.3