summaryrefslogtreecommitdiffstats
path: root/src/connections/wireless
diff options
context:
space:
mode:
authorJim Pryor <profjim@jimpryor.net>2009-08-11 18:49:05 +0200
committerJames Rayner <james@archlinux.org>2009-09-07 11:50:23 +0200
commit3ae7e093c27350ced6ffaf99a3bca6bc56c559b8 (patch)
tree33739118bd44316ad4b44506bc231835329ad1f5 /src/connections/wireless
parentc2b6decd51289abe3d969f305f709fb4243fe6f1 (diff)
downloadnetctl-3ae7e093c27350ced6ffaf99a3bca6bc56c559b8.tar.gz
netctl-3ae7e093c27350ced6ffaf99a3bca6bc56c559b8.tar.xz
respect TMPDIR
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
Diffstat (limited to 'src/connections/wireless')
-rw-r--r--src/connections/wireless2
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?