diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-03-13 21:15:41 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-03-13 21:15:41 +0000 |
commit | 654f9c879fad01d34f7d2e14a6d12e9f1f741085 (patch) | |
tree | 6868a37144840bc3a5bbd893b5c46a99373f5884 /package/switch/files | |
parent | 80307216f2c99e22aa55050334da45f72e8610de (diff) | |
download | mtk-20170518-654f9c879fad01d34f7d2e14a6d12e9f1f741085.zip mtk-20170518-654f9c879fad01d34f7d2e14a6d12e9f1f741085.tar.gz mtk-20170518-654f9c879fad01d34f7d2e14a6d12e9f1f741085.tar.bz2 |
switch: the hardware must be up while configuring Since the removal of the interface coldplug hack the timing changed in such a way that eth0 is not up during switch setup, leading to an inaccesible device. Bring up the switch interface before configuring it to mitigate the problem.
SVN-Revision: 30937
Diffstat (limited to 'package/switch/files')
-rw-r--r-- | package/switch/files/switch.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/package/switch/files/switch.sh b/package/switch/files/switch.sh index 6517ca9..2563d41 100644 --- a/package/switch/files/switch.sh +++ b/package/switch/files/switch.sh @@ -11,6 +11,7 @@ setup_switch_hw() { local proc="/proc/switch/$dev" [ -d "$proc" ] && { + ifconfig "$dev" up echo "$reset" > "$proc/reset" echo "$evlan" > "$proc/enable_vlan" [ -f "$proc/enable" ] && echo "$enable" > "$proc/enable" |