summaryrefslogtreecommitdiffstats
path: root/rc.wireless
diff options
context:
space:
mode:
authorJakub Jankowski <shasta@toxcorp.com>2018-01-08 04:13:11 +0100
committerRobby Workman <rworkman@slackware.com>2018-05-24 01:23:40 -0500
commit85adf99d2f9319415d9684be75a4d7793864d2c2 (patch)
treee05fd9b5f4cb5a70740b3d7b197f0320449a563d /rc.wireless
parent59e0a7610c708c0799b141715863167ed87babd8 (diff)
downloadslacknetsetup-85adf99d2f9319415d9684be75a4d7793864d2c2.tar.xz
Quote variables in tests
Signed-off-by: Jakub Jankowski <shasta@toxcorp.com>
Diffstat (limited to 'rc.wireless')
-rw-r--r--rc.wireless6
1 files changed, 3 insertions, 3 deletions
diff --git a/rc.wireless b/rc.wireless
index a4b20a1..9113f36 100644
--- a/rc.wireless
+++ b/rc.wireless
@@ -62,7 +62,7 @@
LOGGER=${LOGGER:-cat}
-if [ -z $IFNAME ] ; then
+if [ -z "$IFNAME" ] ; then
echo "WARNING: The script 'rc.wireless' must be executed by 'rc.inet1'!" | $LOGGER
echo " You should run the command \"/etc/rc.d/rc.inet1 <your_interface>_start\" yourself." | $LOGGER
return 1 2> /dev/null || exit 1
@@ -289,8 +289,8 @@ if [ "$WPA" = "wpa_supplicant" ] || [ "$WPA" = "wpaxsupplicant" ] && [ -x ${SUPP
$IFCOMMAND down
#WPACONF=${WPACONF:-/etc/wpa_supplicant.conf}
WPA_OPTIONS=""
- [ ${WPADRIVER} ] && WPA_OPTIONS="-D${WPADRIVER}" # specify the driver
- [ ${WPA} = "wpaxsupplicant" ] && WPA_OPTIONS="${WPA_OPTIONS} -e" # Use external xsupplicant (disables the internal supplicant)
+ [ -n "$WPADRIVER" ] && WPA_OPTIONS="-D${WPADRIVER}" # specify the driver
+ [ "$WPA" = "wpaxsupplicant" ] && WPA_OPTIONS="${WPA_OPTIONS} -e" # Use external xsupplicant (disables the internal supplicant)
# We leave a running wpa_supplicant process in peace:
if pgrep --full "bin/wpa_supplicant.* -i${INTERFACE}" >/dev/null ; then