# save the boot loader's vlan config
# we need it on some routers that have no vlan*ports set
[ -d /proc/switch/eth0 ] && {
- v0p="$(cat /proc/switch/eth0/vlan/0/ports)"
- v1p="$(cat /proc/switch/eth0/vlan/1/ports)"
- v2p="$(cat /proc/switch/eth0/vlan/2/ports)"
+ export v0p="$(cat /proc/switch/eth0/vlan/0/ports)"
+ export v1p="$(cat /proc/switch/eth0/vlan/1/ports)"
+ export v2p="$(cat /proc/switch/eth0/vlan/2/ports)"
echo 1 > /proc/switch/eth0/reset
# this would be easier if we blasted the message across all ports