From 47fc55717f0d016ff7f70f2672ee13a65cd648d3 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 29 Nov 2006 17:23:11 +0000 Subject: [PATCH] add workaround for fixing the wrong (for us) asus wl-500gp wan port vlan settings SVN-Revision: 5678 --- openwrt/package/base-files/default/etc/init.d/S05nvram | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/openwrt/package/base-files/default/etc/init.d/S05nvram b/openwrt/package/base-files/default/etc/init.d/S05nvram index e4ce3755e1..21cd2edcfa 100755 --- a/openwrt/package/base-files/default/etc/init.d/S05nvram +++ b/openwrt/package/base-files/default/etc/init.d/S05nvram @@ -103,6 +103,14 @@ nvram_default lan_proto static [ "$boardnum" = "45" \ -a "$boardtype" = "0x042f" ] && { debug "### wl-500g premium hacks ###" + [ -z "$(nvram get lan_ifnames_t)" || { + # hasn't been remapped yet, revert the vlan1 config as well, because + # it defaults to "0 5u", which we can't use. + # use lan_ifnames_t as an indicator of whether the config was made + # by the original firmware. + nvram unset vlan1ports + nvram unset lan_ifnames_t + } remap eth0.1 vlan0 remap eth0 vlan1 -- 2.30.2