brcm47xx: fix network config on simpleshare
authorhauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 16 Feb 2013 15:24:48 +0000 (15:24 +0000)
committerhauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 16 Feb 2013 15:24:48 +0000 (15:24 +0000)
The included patch will generate a correct network configuration on the simpletech simpleshare.

Thank you for the patch Will Holmes (RealOpty)

This closes #12361.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35623 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/brcm47xx/base-files/etc/init.d/netconfig

index 98747f5..3839f9f 100755 (executable)
@@ -217,6 +217,12 @@ start() {
                        c["vlan0ports"] = "0 1 2 3 5"
                        c["vlan1ports"] = "4 5"
                }
+               if (model == "SimpleTech SimpleShare NAS") {
+                       c["lan_ifname"] = "eth0"
+                       c["wan_ifname"] = ""
+                       c["vlan0ports"] = ""
+                       c["vlan1ports"] = ""
+               }
 
                if (c["vlan0ports"] || c["vlan1ports"]) {
                        print "#### VLAN configuration "