From f7d8050336c36fc7c5f49f6c99d0081cf2eb3574 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Tue, 16 Oct 2018 20:54:02 -0400 Subject: Be absolutely certian the file is not written to disk by using /dev/shm --- wpaconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'wpaconfig') 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" -- cgit v1.2.3