aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2018-10-16 20:54:02 -0400
committerMitch Riedstra <mitch@riedstra.us>2018-10-16 20:54:02 -0400
commitf7d8050336c36fc7c5f49f6c99d0081cf2eb3574 (patch)
tree40181cdd60ac1e0bfe79e7643cf3de28f67ad599
parentb5bf704240f5873122cc00441f15fc289edcb72f (diff)
downloaddotfiles-f7d8050336c36fc7c5f49f6c99d0081cf2eb3574.tar.gz
dotfiles-f7d8050336c36fc7c5f49f6c99d0081cf2eb3574.tar.xz
Be absolutely certian the file is not written to disk by using /dev/shm
-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"