aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wpaconfig4
1 files changed, 3 insertions, 1 deletions
diff --git a/wpaconfig b/wpaconfig
index 418f246..3ffcdf3 100644
--- a/wpaconfig
+++ b/wpaconfig
@@ -31,7 +31,7 @@ if [ "$1" = "list" ] ; then
exit 0;
fi
-_temp="$(mktemp)"
+_temp="$(mktemp -p /dev/shm)"
while [ $# -gt 0 ] ; do case $1 in
nwid) _nwid="$2"; shift; shift ;;
@@ -50,3 +50,5 @@ tmux new-session -s wpa wpa_supplicant -i "$_if" -c "$_temp" \;\
new-window busybox udhcpc -i "$_if" -f
+
+rm -f "$_temp"