diff options
author | Roy Marples <roy@marples.name> | 2007-12-31 09:28:53 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-12-31 09:28:53 +0000 |
commit | a273f8df559bcb8faaf0770587f54735463c5ef0 (patch) | |
tree | 94c8fa53a3e0c4d789631be328293daf56ee50f0 /sh | |
parent | b6aa56ce14cab6c6a1c4c88a1d0ec15976e5b25e (diff) |
Fix the adding of default routes
Diffstat (limited to 'sh')
-rwxr-xr-x | sh/net.sh | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -588,10 +588,10 @@ ${routes}" # Work out if we're a host or a net if not told case ${cmd} in -net" "*|-host" "*);; - *" "netmask" "*) cmd="-net ${cmd}";; - *.*.*.*/32) cmd="-host ${cmd}";; - *.*.*.*/*|0.0.0.0|default) cmd="-net ${cmd}";; - *) cmd="-host ${cmd}";; + *" "netmask" "*) cmd="-net ${cmd}";; + *.*.*.*/32) cmd="-host ${cmd}";; + *.*.*.*/*|0.0.0.0" "*|default" "*) cmd="-net ${cmd}";; + *) cmd="-host ${cmd}";; esac if ${hidefirstroute}; then _add_route ${cmd} >/dev/null 2>&1 |