diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-01-26 16:09:58 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-01-26 16:09:58 +0000 |
commit | cc13c60980666ec74c0ddefcdf71b4378ea938b0 (patch) | |
tree | 8b6760d3f79cf1c95e9e3c18093f154d7fb8af6d /openwrt/target/linux/package | |
parent | 55655a5081d252492d3bb19d0b2ec25d1b4c3c37 (diff) | |
download | mtk-20170518-cc13c60980666ec74c0ddefcdf71b4378ea938b0.zip mtk-20170518-cc13c60980666ec74c0ddefcdf71b4378ea938b0.tar.gz mtk-20170518-cc13c60980666ec74c0ddefcdf71b4378ea938b0.tar.bz2 |
issue switch reset when bringing up the ethernet device
SVN-Revision: 3047
Diffstat (limited to 'openwrt/target/linux/package')
-rw-r--r-- | openwrt/target/linux/package/base-files/files/brcm-2.4/etc/hotplug.d/net/09-net | 1 | ||||
-rw-r--r-- | openwrt/target/linux/package/base-files/files/brcm-2.6/etc/hotplug.d/net/09-net | 1 |
2 files changed, 2 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 75604eb..6821bf7 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" ] && { diff --git a/openwrt/target/linux/package/base-files/files/brcm-2.6/etc/hotplug.d/net/09-net b/openwrt/target/linux/package/base-files/files/brcm-2.6/etc/hotplug.d/net/09-net index 5e941e5..8670bb4 100644 --- a/openwrt/target/linux/package/base-files/files/brcm-2.6/etc/hotplug.d/net/09-net +++ b/openwrt/target/linux/package/base-files/files/brcm-2.6/etc/hotplug.d/net/09-net @@ -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" ] && { |