From f78269c7fc972b43b7b63709f47b566e87aac469 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 16 Oct 2006 01:39:39 +0000 Subject: [PATCH] add nvram defaults for wl-500gp SVN-Revision: 5148 --- .../base-files/default/etc/init.d/S05nvram | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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 ###" -- 2.30.2