From: Felix Fietkau Date: Tue, 31 Jan 2006 13:23:18 +0000 (+0000) Subject: don't include the wan port in the initial vlan configuration used by netmsg (fixes... X-Git-Tag: whiterussian_rc5~199 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=54bb5328b62175e7ac1558e7af643dd8b73e736e;p=openwrt%2Fsvn-archive%2Fopenwrt.git don't include the wan port in the initial vlan configuration used by netmsg (fixes #238) SVN-Revision: 3083 --- diff --git a/openwrt/package/base-files/default/etc/preinit b/openwrt/package/base-files/default/etc/preinit index 509f378a88..d4e99277d5 100755 --- a/openwrt/package/base-files/default/etc/preinit +++ b/openwrt/package/base-files/default/etc/preinit @@ -8,6 +8,10 @@ ifconfig eth0 up insmod switch-core insmod switch-robo || insmod switch-adm || rmmod switch-core +case "$(nvram get boardtype)" in + 0x0467) failsafe_vlan="0 1 2 3 5u*";; + *) failsafe_vlan="1 2 3 4 5u*";; +esac # save the boot loader's vlan config # we need it on some routers that have no vlan*ports set [ -d /proc/switch/eth0 ] && { @@ -15,7 +19,7 @@ insmod switch-robo || insmod switch-adm || rmmod switch-core v1p="$(cat /proc/switch/eth0/vlan/1/ports)" v2p="$(cat /proc/switch/eth0/vlan/2/ports)" echo 1 > /proc/switch/eth0/reset - echo "0 1 2 3 4 5u*" > /proc/switch/eth0/vlan/0/ports + echo "$failsafe_vlan" > /proc/switch/eth0/vlan/0/ports } # this delay is apparently necessary because the link isn't up yet