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 ] && {
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