From 654f9c879fad01d34f7d2e14a6d12e9f1f741085 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 13 Mar 2012 21:15:41 +0000 Subject: 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 --- package/switch/files/switch.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'package/switch/files') 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" -- cgit v1.2.3