diff options
author | Jouke Witteveen <j.witteveen@gmail.com> | 2013-03-19 15:29:25 +0100 |
---|---|---|
committer | Jouke Witteveen <j.witteveen@gmail.com> | 2013-03-19 15:29:25 +0100 |
commit | 07123c0f5beeae4761a23f1caedec3135afc3867 (patch) | |
tree | 65dbb28c8e622889e9dae20a2c259e5f93db61da /src/lib/auto.action | |
parent | 9cf4c218da66b3aa35743a2c4c842fd2c2c5bb9c (diff) | |
download | netctl-07123c0f5beeae4761a23f1caedec3135afc3867.tar.gz netctl-07123c0f5beeae4761a23f1caedec3135afc3867.tar.xz |
Fix termination of wpa_actiond
wpa_supplicant would not immediately terminate with an attached ctrl monitor.
Diffstat (limited to 'src/lib/auto.action')
-rwxr-xr-x | src/lib/auto.action | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/auto.action b/src/lib/auto.action index ae49384..6cb6ff5 100755 --- a/src/lib/auto.action +++ b/src/lib/auto.action @@ -7,7 +7,6 @@ interface="$1" ssid="$2" profile="$3" action="$4" -PROFILE_FILE="$STATE_DIR/wpa_actiond_$interface.profile" # Is it possible that we don't get a profile?! [[ "$profile" ]] && load_profile "$profile" @@ -23,8 +22,6 @@ case $action in fi DHCPOptions+=" -K" ip_set || exit 1 - mkdir -p "$(dirname "$PROFILE_FILE")" - printf "%s" "$profile" > "$PROFILE_FILE" # JP: sandbox the eval if ! ( eval $ExecUpPost ); then # Failing ExecUpPost will take the connection down @@ -41,7 +38,7 @@ case $action in if ! ( eval $ExecDownPre ); then exit 1 fi - ip_unset && rm -f "$PROFILE_FILE" + ip_unset ;; LOST|REESTABLISHED) # Not handled. |