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
This commit is contained in:
Jo-Philipp Wich
2012-03-13 21:15:41 +00:00
parent 80307216f2
commit 654f9c879f
2 changed files with 3 additions and 2 deletions

View File

@@ -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"