summaryrefslogtreecommitdiffstats
path: root/src-wireless
diff options
context:
space:
mode:
Diffstat (limited to 'src-wireless')
-rw-r--r--src-wireless/net-auto8
-rw-r--r--src-wireless/netcfg-auto-wireless4
2 files changed, 6 insertions, 6 deletions
diff --git a/src-wireless/net-auto b/src-wireless/net-auto
index c1e9d70..cf99270 100644
--- a/src-wireless/net-auto
+++ b/src-wireless/net-auto
@@ -18,9 +18,9 @@ case "$1" in
# TODO: check if any way of using 'stacks' in bash
rm -f "$STATE_DIR/net-auto"
- for iface in ${AUTO_NETWORKS[@]}; do
+ for iface in "${AUTO_NETWORKS[@]}"; do
if [[ "${iface:0:4}" = "auto" ]]; then
- auto=$iface
+ auto="$iface"
elif [[ "$auto" ]]; then
if /usr/bin/netcfg-"$auto" "$iface"; then
echo "$iface" >> "$STATE_DIR/net-auto"
@@ -36,13 +36,13 @@ case "$1" in
fi
for iface in $(cat "$STATE_DIR/net-auto"); do
- netcfg iface-down $iface
+ netcfg iface-down "$iface"
done
rm -f "$STATE_DIR/net-auto"
rm_daemon net-auto
;;
restart)
- $0 stop; sleep 1; $0 start
+ "$0" stop; sleep 1; "$0" start
;;
*)
exit_stderr "Usage: $0 {start|stop|restart}"
diff --git a/src-wireless/netcfg-auto-wireless b/src-wireless/netcfg-auto-wireless
index 24edcfb..bbee281 100644
--- a/src-wireless/netcfg-auto-wireless
+++ b/src-wireless/netcfg-auto-wireless
@@ -80,8 +80,8 @@ wifi_auto()
if [[ $(id -u) -ne 0 ]]; then
exit_stderr "This script needs to be run with root privileges"
fi
-if [[ -z $1 ]]; then
+if [[ -z "$1" ]]; then
exit_stderr "Please supply an interface to connect"
fi
-wifi_auto $1
+wifi_auto "$1"