diff options
Diffstat (limited to 'src/wireless')
-rw-r--r-- | src/wireless | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wireless b/src/wireless index 81a8408..e778627 100644 --- a/src/wireless +++ b/src/wireless @@ -91,7 +91,7 @@ list_networks() # is hard, obscure and kinda nasty. This is simpler and clearer. [[ -z "$INTERFACE" ]] && return 1 - essids=$(mktemp /tmp/essid.XXXXXXXX) + essids=$(mktemp --tmpdir essid.XXXXXXXX) wpa_supplicant -B -i$INTERFACE -Dwext -C/var/run/wpa_supplicant -P/var/run/wpa_supplicant.pid @@ -115,8 +115,8 @@ list_networks() kill $(cat /var/run/wpa_supplicant.pid) # File of 0 length, ie. no ssid's. - if [[ ! -s $essids ]]; then - rm -f $essids + if [[ ! -s "$essids" ]]; then + rm -f "$essids" return 1 fi |