diff options
Diffstat (limited to 'src/net-profiles')
-rw-r--r-- | src/net-profiles | 8 |
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}" |