diff options
Diffstat (limited to 'wpa_actiond/netcfg-wpa_actiond')
-rwxr-xr-x | wpa_actiond/netcfg-wpa_actiond | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/wpa_actiond/netcfg-wpa_actiond b/wpa_actiond/netcfg-wpa_actiond index 1242a73..32fd42d 100755 --- a/wpa_actiond/netcfg-wpa_actiond +++ b/wpa_actiond/netcfg-wpa_actiond @@ -5,7 +5,6 @@ AUTOWIFI="/usr/sbin/wpa_actiond" ACTION_SCRIPT="/usr/bin/netcfg-wpa_actiond-action" -PIDFILE="/var/run/wpa_actiond_${interface}.pid" case $1 in help) @@ -15,13 +14,14 @@ case $1 in ;; stop) stop_wpa $2 - kill $(cat $PIDFILE) - exit + kill $(cat "/var/run/wpa_actiond_${2}.pid") + exit ;; *) interface=$1; shift + PIDFILE="/var/run/wpa_actiond_${interface}.pid" EXTRA_AUTOWIFI_OPTIONS="$*" - ;; + ;; esac if [[ -z $interface ]]; then |