diff options
author | Jim Pryor <profjim@jimpryor.net> | 2009-08-11 18:49:05 +0200 |
---|---|---|
committer | James Rayner <james@archlinux.org> | 2009-09-07 11:50:23 +0200 |
commit | 3ae7e093c27350ced6ffaf99a3bca6bc56c559b8 (patch) | |
tree | 33739118bd44316ad4b44506bc231835329ad1f5 /src/connections | |
parent | c2b6decd51289abe3d969f305f709fb4243fe6f1 (diff) | |
download | netctl-3ae7e093c27350ced6ffaf99a3bca6bc56c559b8.tar.gz netctl-3ae7e093c27350ced6ffaf99a3bca6bc56c559b8.tar.xz |
respect TMPDIR
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
Diffstat (limited to 'src/connections')
-rw-r--r-- | src/connections/wireless | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/connections/wireless b/src/connections/wireless index a0191b6..d341e99 100644 --- a/src/connections/wireless +++ b/src/connections/wireless @@ -204,7 +204,7 @@ wireless_down() { fi report_debug wireless_down stop_wpa "$INTERFACE" stop_wpa "$INTERFACE" - [[ "$SECURITY" == "wpa" ]] && rm -rf "/tmp/wpa.${PROFILE// /}" # remove tmp wpa config + [[ "$SECURITY" == "wpa" ]] && rm -rf "${TMPDIR:-/tmp}/wpa.${PROFILE// /}" # remove tmp wpa config report_debug wireless_down iwconfig "$INTERFACE" essid off key off iwconfig "$INTERFACE" essid off key off &> /dev/null # respects quirk nodown---is that appropriate? |