summaryrefslogtreecommitdiff
path: root/setnet.sh
diff options
context:
space:
mode:
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}`