aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-10-23 01:07:35 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-10-23 01:07:35 +0000
commitad0b1add529469c1533e35d8904918cfc8bca790 (patch)
tree0e693459315806f58b5afd9cfbf132d23c763130 /package/base-files
parentc2d255feb8355c6b58dae65f12beb770521ff07e (diff)
downloadupstream-ad0b1add529469c1533e35d8904918cfc8bca790.tar.gz
upstream-ad0b1add529469c1533e35d8904918cfc8bca790.tar.bz2
upstream-ad0b1add529469c1533e35d8904918cfc8bca790.zip
make sure that the dhcp client (or other processes necessary to get a connection) gets restarted when the wifi is restarted
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13026 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files')
-rwxr-xr-xpackage/base-files/files/sbin/wifi1
1 files changed, 1 insertions, 0 deletions
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"