issue switch reset when bringing up the ethernet device
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 26 Jan 2006 16:09:58 +0000 (16:09 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 26 Jan 2006 16:09:58 +0000 (16:09 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@3047 3c298f89-4303-0410-b956-a3cf2f4a3e73

openwrt/target/linux/package/base-files/files/brcm-2.4/etc/hotplug.d/net/09-net
openwrt/target/linux/package/base-files/files/brcm-2.6/etc/hotplug.d/net/09-net

index 75604eb..6821bf7 100644 (file)
@@ -17,6 +17,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" ] && {
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" ] && {
This page took 0.023433 seconds and 4 git commands to generate.