[package] switch: the hardware must be up while configuring
[openwrt/svn-archive/archive.git] / package / switch / files / switch.sh
index 6517ca9853ce449e5e294b19937de6b433f3401e..2563d410e522ba0eca83804480d89313ab147ff9 100644 (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"