diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2018-10-16 20:54:02 -0400 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2018-10-16 20:54:02 -0400 |
| commit | f7d8050336c36fc7c5f49f6c99d0081cf2eb3574 (patch) | |
| tree | 40181cdd60ac1e0bfe79e7643cf3de28f67ad599 | |
| parent | b5bf704240f5873122cc00441f15fc289edcb72f (diff) | |
| download | dotfiles-f7d8050336c36fc7c5f49f6c99d0081cf2eb3574.tar.gz dotfiles-f7d8050336c36fc7c5f49f6c99d0081cf2eb3574.tar.xz | |
Be absolutely certian the file is not written to disk by using /dev/shm
| -rw-r--r-- | wpaconfig | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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" |
