summaryrefslogtreecommitdiffstats
path: root/src/net-profiles
diff options
context:
space:
mode:
authorJim Pryor <profjim@jimpryor.net>2009-08-11 14:05:16 +0200
committerJames Rayner <james@archlinux.org>2009-08-15 04:28:31 +0200
commit09a2212f344e5bdf7573584a9b8ef5b64c7b1fac (patch)
treeea813dcebf776401161a6fc3b4761710b2a0d2e2 /src/net-profiles
parent07aa8f784896ba97914f4b2a71d2ba6c0047cb07 (diff)
downloadnetctl-09a2212f344e5bdf7573584a9b8ef5b64c7b1fac.tar.gz
netctl-09a2212f344e5bdf7573584a9b8ef5b64c7b1fac.tar.xz
quotes!
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
Diffstat (limited to 'src/net-profiles')
-rw-r--r--src/net-profiles8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net-profiles b/src/net-profiles
index 152d803..129aaed 100644
--- a/src/net-profiles
+++ b/src/net-profiles
@@ -21,7 +21,7 @@ case "$1" in
[ ! "$NETWORKS_MENU_TIMEOUT" ] && NETWORKS_MENU_TIMEOUT=5
if [[ "$NET" = "menu" ]]; then
- if /usr/bin/netcfg-menu $NETWORKS_MENU_TIMEOUT; then
+ if /usr/bin/netcfg-menu "$NETWORKS_MENU_TIMEOUT"; then
mv "$STATE_DIR"/{menu,net-profiles} # JP: user may want to disconnect profile by calling net-profiles stop
add_daemon net-profiles
exit 0
@@ -34,8 +34,8 @@ case "$1" in
fi
else
# No NET= passed at boot, go to NETWORKS=()
- for network in ${NETWORKS[@]}; do
- case $network in
+ for network in "${NETWORKS[@]}"; do
+ case "$network" in
menu) # Pull up menu of networks
if /usr/bin/netcfg-menu "$NETWORKS_MENU_TIMEOUT"; then
mv "$STATE_DIR"/{menu,net-profiles} # JP: user may want to disconnect profile by calling net-profiles stop
@@ -72,7 +72,7 @@ case "$1" in
rm_daemon net-profiles
;;
restart)
- $0 stop; sleep 1; $0 start
+ "$0" stop; sleep 1; "$0" start
;;
*)
exit_stderr "Usage: $0 {start|stop|restart}"