From: Felix Fietkau Date: Thu, 23 Oct 2008 01:07:35 +0000 (+0000) Subject: make sure that the dhcp client (or other processes necessary to get a connection... X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=a69a35cb0a5e7cf55e5fb1e10809d1a01dfc5ed5;p=openwrt%2Fsvn-archive%2Farchive.git make sure that the dhcp client (or other processes necessary to get a connection) gets restarted when the wifi is restarted SVN-Revision: 13026 --- diff --git a/package/base-files/files/sbin/wifi b/package/base-files/files/sbin/wifi index 54e55b49df..63e132d4f1 100755 --- a/package/base-files/files/sbin/wifi +++ b/package/base-files/files/sbin/wifi @@ -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"