summaryrefslogtreecommitdiffstats
path: root/openwrt/target/linux/package/base-files/files/brcm-2.4
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-01-26 16:09:58 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-01-26 16:09:58 +0000
commit708e9983d71a725df7b4ed318fed891ae03596ff (patch)
tree0fe6ac6f9a565f991c4699f4ef6d4bc74c664f30 /openwrt/target/linux/package/base-files/files/brcm-2.4
parent3c84b7180347b40549e5f236de8ee093fbee7b70 (diff)
issue switch reset when bringing up the ethernet device
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@3047 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/target/linux/package/base-files/files/brcm-2.4')
-rw-r--r--openwrt/target/linux/package/base-files/files/brcm-2.4/etc/hotplug.d/net/09-net1
1 files changed, 1 insertions, 0 deletions
diff --git a/openwrt/target/linux/package/base-files/files/brcm-2.4/etc/hotplug.d/net/09-net b/openwrt/target/linux/package/base-files/files/brcm-2.4/etc/hotplug.d/net/09-net
index 75604ebef..6821bf728 100644
--- a/openwrt/target/linux/package/base-files/files/brcm-2.4/etc/hotplug.d/net/09-net
+++ b/openwrt/target/linux/package/base-files/files/brcm-2.4/etc/hotplug.d/net/09-net
@@ -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" ] && {