summaryrefslogtreecommitdiffstats
path: root/wpa_actiond
diff options
context:
space:
mode:
authorXavion <xavion.0@gmail.com>2011-06-19 18:44:23 +0200
committerRémy Oudompheng <remy@archlinux.org>2011-06-19 18:44:23 +0200
commit5d3dc80a517e9704921f1d09a43e5988075e7c38 (patch)
tree9a077dd4c7059ad5d361139544dea40ccadbc8f6 /wpa_actiond
parent786bd76efd1ddee7ec7338879e821ac3a14ab032 (diff)
downloadnetctl-5d3dc80a517e9704921f1d09a43e5988075e7c38.tar.gz
netctl-5d3dc80a517e9704921f1d09a43e5988075e7c38.tar.xz
netcfg-wpa_actiond: properly stop netcfg profile (FS#23293)
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
Diffstat (limited to 'wpa_actiond')
-rwxr-xr-xwpa_actiond/netcfg-wpa_actiond3
1 files changed, 2 insertions, 1 deletions
diff --git a/wpa_actiond/netcfg-wpa_actiond b/wpa_actiond/netcfg-wpa_actiond
index 3f338c6..0e38518 100755
--- a/wpa_actiond/netcfg-wpa_actiond
+++ b/wpa_actiond/netcfg-wpa_actiond
@@ -16,7 +16,8 @@ case $1 in
[[ -z $2 ]] && echo "Please specify an interface to stop" && exit 1
interface=$2
[[ -f "$IFACE_DIR/$interface" ]] && source "$IFACE_DIR/$interface"
- stop_wpa $2
+ netcfg -i "$interface"
+ stop_wpa "$interface"
kill $(cat "/run/wpa_actiond_${2}.pid")
if [[ -n "$RFKILL" ]]; then
set_rf_state "$interface" disabled $RFKILL_NAME || exit $?