aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsh/net.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/sh/net.sh b/sh/net.sh
index 5af6fd1d..f5535b8f 100755
--- a/sh/net.sh
+++ b/sh/net.sh
@@ -497,8 +497,8 @@ start() {
eval config=\$config_${config_index}
[ -z "${config}" ] && break
- set -- "${config}"
- ebegin $1
+ set -- ${config}
+ ebegin "$1"
eindent
case "$1" in
noop)
@@ -564,8 +564,8 @@ ${routes}"
ebegin ${cmd}
# Work out if we're a host or a net if not told
case ${cmd} in
- *" -net "*|*" -host "*);;
- *" netmask "*) cmd="-net ${cmd}";;
+ -net" "*|-host" "*);;
+ *" "netmask" "*) cmd="-net ${cmd}";;
*.*.*.*/32) cmd="-host ${cmd}";;
*.*.*.*/*|0.0.0.0|default) cmd="-net ${cmd}";;
*) cmd="-host ${cmd}";;