make sure that the dhcp client (or other processes necessary to get a connection...
[openwrt/openwrt.git] / package / base-files / files / sbin / wifi
index 54e55b49df6e7dc96065a7ff52e8fb323a69dc8f..63e132d4f1c1e9291ecf21b9b4f455dda3e1a47f 100755 (executable)
@@ -67,6 +67,7 @@ start_net() {(
        local iface="$1"
        local config="$2"
 
+       [ -f "/var/run/$iface.pid" ] && kill "$(cat /var/run/${iface}.pid)" 2>/dev/null
        include /lib/network
        scan_interfaces
        setup_interface "$1" "$2"