diff options
author | Felix Fietkau <nbd@openwrt.org> | 2008-10-23 01:07:35 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2008-10-23 01:07:35 +0000 |
commit | c0e753bcdcbfb25677691151c66acd640cb9f84e (patch) | |
tree | cda6b7d1f10569004bd690faafacaeb7b35fbeff /package/base-files/files | |
parent | c57577bf5bb536509fbd1295a0491048c9b5334e (diff) | |
download | upstream-c0e753bcdcbfb25677691151c66acd640cb9f84e.tar.gz upstream-c0e753bcdcbfb25677691151c66acd640cb9f84e.tar.bz2 upstream-c0e753bcdcbfb25677691151c66acd640cb9f84e.zip |
make sure that the dhcp client (or other processes necessary to get a connection) gets restarted when the wifi is restarted
SVN-Revision: 13026
Diffstat (limited to 'package/base-files/files')
-rwxr-xr-x | package/base-files/files/sbin/wifi | 1 |
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" |