X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;ds=sidebyside;f=package%2Fswitch%2Ffiles%2Fswitch.sh;h=6517ca9853ce449e5e294b19937de6b433f3401e;hb=931af063aa5cf9b9533288c027919ff1b16a3527;hp=f0bd8ce60fe4f312557812fa14885342838ef6e3;hpb=0a7ebe9ab1187e5ef18994439f2b83bbc06a7414;p=openwrt-10.03%2F.git diff --git a/package/switch/files/switch.sh b/package/switch/files/switch.sh index f0bd8ce60..6517ca985 100644 --- a/package/switch/files/switch.sh +++ b/package/switch/files/switch.sh @@ -15,6 +15,12 @@ setup_switch_hw() { echo "$evlan" > "$proc/enable_vlan" [ -f "$proc/enable" ] && echo "$enable" > "$proc/enable" } + + local vlan + for vlan in `seq 0 15`; do + proc="/proc/switch/$dev/vlan/$vlan/ports" + [ -f "$proc" ] && echo "" > "$proc" + done } setup_switch_vlan() {