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.lede-project.org./?a=commitdiff_plain;h=c0e753bcdcbfb25677691151c66acd640cb9f84e;p=openwrt%2Fstaging%2Fthess.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"