diff options
author | KatolaZ <katolaz@freaknet.org> | 2017-01-01 12:56:31 +0000 |
---|---|---|
committer | KatolaZ <katolaz@freaknet.org> | 2017-01-01 12:56:31 +0000 |
commit | 796b4194aac0e192f8ca1f2fd563c8b08e09f847 (patch) | |
tree | 2d857eaadcc9d1dfea4c9e9bb8a4f58da4980647 /setnet.sh | |
parent | 76c04ac43067d724ab87c5d4154dfce88518e913 (diff) |
Towards a posix-compliant version
Diffstat (limited to 'setnet.sh')
-rwxr-xr-x | setnet.sh | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -39,8 +39,9 @@ DIALOG="dialog --backtitle \"${TOPSTR}\" " -TMPFILE=`(tempfile) 2>/dev/null` || tempfile=/tmp/setnet_$$ -WPA_PIDFILE=`(tempfile) 2>/dev/null` || tempfile=/tmp/setnet_wpapid_$$ + +TMPFILE=$( (tempfile) 2>/dev/null) || TMPFILE=/tmp/setnet_$$ +WPA_PIDFILE=$( (tempfile) 2>/dev/null) || WPA_PIDFILE=/tmp/setnet_wpapid_$$ WINDOW_WIDTH=75 WINDOW_HEIGHT=20 @@ -664,7 +665,7 @@ function wifi_load_file(){ local DEVNAME=$1 eval "${DIALOG} --fselect ${WPA_FILE} ${WINDOW_HEIGHT} ${WINDOW_WIDTH} \ - 2>${TMPFILE}|" + 2>${TMPFILE}" if [ $? -eq 0 ]; then SEL_FILE=`<${TMPFILE}` |