make sure that the dhcp client (or other processes necessary to get a connection...
authorFelix Fietkau <nbd@openwrt.org>
Thu, 23 Oct 2008 01:07:35 +0000 (01:07 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 23 Oct 2008 01:07:35 +0000 (01:07 +0000)
SVN-Revision: 13026

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"