add nvram hack for wrtsl54gs (missing vlan variables), close #346
authorFelix Fietkau <nbd@openwrt.org>
Wed, 8 Mar 2006 02:47:57 +0000 (02:47 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 8 Mar 2006 02:47:57 +0000 (02:47 +0000)
SVN-Revision: 3333

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

index 45d22c95d2f7cc4469a8b89875565893c1ee8822..dd2ea6866de8b152793c6658de79f7f2545d0b17 100755 (executable)
@@ -132,6 +132,16 @@ esac
        nvram set lan_ifnames="vlan0"
 }
 
+# wrtsl54gs vlan defaults
+[  "$boardtype" = "0x042f" \
+-a "$boardnum" = "42" \
+-a "$boardflags" = "24" ] && {
+       nvram_default vlan0hwname "et0"
+       nvram_default vlan0ports "0 1 2 3 5u"
+       nvram_default vlan1hwname "et0"
+       nvram_default vlan1ports "4 5"
+}
+
 # needed at least for wrt54gs v1.1 and wrt54g v2.0, v2.2
 [ \! -z "$(nvram get boardrev)" ] && {
        nvram_default wl0id 0x4320