mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
[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
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user