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 | 24f8f163908184ccdcfe968681cc9eba86c058a4 (patch) | |
tree | cee02d710f976a8dcec99d97dded7315ec1bcca5 /package/switch/files | |
parent | 5f4d8411d39f37b1ed16a4c5cbdbe5ee67323cfc (diff) | |
download | master-187ad058-24f8f163908184ccdcfe968681cc9eba86c058a4.tar.gz master-187ad058-24f8f163908184ccdcfe968681cc9eba86c058a4.tar.bz2 master-187ad058-24f8f163908184ccdcfe968681cc9eba86c058a4.zip |
[package] 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.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30937 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 6517ca9853..2563d410e5 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" |