From: Felix Fietkau Date: Mon, 16 Oct 2006 01:39:39 +0000 (+0000) Subject: add nvram defaults for wl-500gp X-Git-Tag: whiterussian_rc6~75 X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=f78269c7fc972b43b7b63709f47b566e87aac469;p=openwrt%2Fsvn-archive%2Fopenwrt.git add nvram defaults for wl-500gp SVN-Revision: 5148 --- diff --git a/openwrt/package/base-files/default/etc/init.d/S05nvram b/openwrt/package/base-files/default/etc/init.d/S05nvram index 932009e373..1e159dec55 100755 --- a/openwrt/package/base-files/default/etc/init.d/S05nvram +++ b/openwrt/package/base-files/default/etc/init.d/S05nvram @@ -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 ###"