From 92a38bab792ceb8bd48d376ecad28a65f71beb18 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 31 Jan 2006 13:23:18 +0000 Subject: [PATCH] don't include the wan port in the initial vlan configuration used by netmsg (fixes #238) SVN-Revision: 3083 --- openwrt/package/base-files/default/etc/preinit | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.30.2