add nvram defaults for wl-500gp
authorFelix Fietkau <nbd@openwrt.org>
Mon, 16 Oct 2006 01:39:39 +0000 (01:39 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 16 Oct 2006 01:39:39 +0000 (01:39 +0000)
SVN-Revision: 5148

openwrt/package/base-files/default/etc/init.d/S05nvram

index 932009e373c850ef58c67adef5531aa7f3a59cab..1e159dec550a996d08a15654113410b4d7036754 100755 (executable)
@@ -99,6 +99,22 @@ nvram_default lan_proto static
        nvram_default vlan1ports "0 5"
 }
 
+# wl-500g premium
+[  "$boardnum"  = "45" \
+-a "$boardtype" = "0x042f" ] && {
+       debug "### wl-500g premium hacks ###"
+       nvram_default lan_ifnames "vlan0 eth2"
+       nvram_default wan_ifname "vlan1"
+       
+       nvram_default vlan0hwname "et0"
+       nvram_default vlan1hwname "et0"
+
+       # set up the vlan*ports variables for the asus wl-500g premium
+       # if they don't already exist 
+       nvram_default vlan0ports "1 2 3 4 5*"
+       nvram_default vlan1ports "0 5"
+}
+
 # hacks for asus
 [ "$boardnum" = "asusX" ] && {
        debug "### asus hacks ###"