issue switch reset when bringing up the ethernet device
[openwrt/svn-archive/archive.git] / openwrt / target / linux / package / base-files / files / brcm-2.6 / etc / hotplug.d / net / 09-net
index 5e941e5..8670bb4 100644 (file)
@@ -11,6 +11,7 @@ setup_eth()
        if="$(echo "$INTERFACE" | sed s,eth,et,)"
        ifconfig "$INTERFACE" up 2>&- >&-
        [ -d "/proc/switch/$INTERFACE" ] || return 0
+       echo "1" > "/proc/switch/$INTERFACE/reset"
        echo "1" > "/proc/switch/$INTERFACE/enable_vlan"
        for vlan in $(seq 0 15); do
                [ "$(nvram get vlan${vlan}hwname)" = "$if" ] && {