summaryrefslogtreecommitdiff
path: root/setnet.sh
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2017-01-01 12:56:31 +0000
committerKatolaZ <katolaz@freaknet.org>2017-01-01 12:56:31 +0000
commit796b4194aac0e192f8ca1f2fd563c8b08e09f847 (patch)
tree2d857eaadcc9d1dfea4c9e9bb8a4f58da4980647 /setnet.sh
parent76c04ac43067d724ab87c5d4154dfce88518e913 (diff)
Towards a posix-compliant version
Diffstat (limited to 'setnet.sh')
-rwxr-xr-xsetnet.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/setnet.sh b/setnet.sh
index e5cba98..3a173c0 100755
--- a/setnet.sh
+++ b/setnet.sh
@@ -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}`