From c0e753bcdcbfb25677691151c66acd640cb9f84e Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 23 Oct 2008 01:07:35 +0000 Subject: [PATCH] make sure that the dhcp client (or other processes necessary to get a connection) gets restarted when the wifi is restarted SVN-Revision: 13026 --- package/base-files/files/sbin/wifi | 1 + 1 file changed, 1 insertion(+) 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" -- 2.30.2