base-files: bring up vlan interface too
[openwrt/openwrt.git] / package / base-files / files / lib / preinit / 10_indicate_preinit
index deb5f2a..debb3d4 100644 (file)
@@ -18,6 +18,9 @@ preinit_ip_config() {
        fi
 
        ip link set dev $netdev up
+       if [ -n "$vid" ]; then
+               ip link set dev $1 up
+       fi
        ip -4 address add $pi_ip/$pi_netmask broadcast $pi_broadcast dev $1
 }