From: Ted Lemon Date: Sun, 14 Feb 1999 18:38:59 +0000 (+0000) Subject: Add route hop counts to all route commands. X-Git-Tag: V3-ALPHA-19990315~83 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e43f1b77b7d8f41814126a0835c301cd25e4d163;p=thirdparty%2Fdhcp.git Add route hop counts to all route commands. --- diff --git a/client/scripts/solaris b/client/scripts/solaris index 4f60ebaa7..0f5a253a9 100755 --- a/client/scripts/solaris +++ b/client/scripts/solaris @@ -69,15 +69,15 @@ if [ x$reason = xBOUND ] || [ x$reason = xRENEW ] || \ [ x$reason = xBOUND ] || [ x$reason = xREBOOT ]; then ifconfig $interface inet $new_ip_address $new_netmask_arg \ $new_broadcast_arg $medium - route add $new_ip_address 127.1 >/dev/null 2>&1 + route add $new_ip_address 127.1 1 >/dev/null 2>&1 for router in $new_routers; do - route add default $router >/dev/null 2>&1 + route add default $router 1 >/dev/null 2>&1 done fi if [ x$new_ip_address != x$alias_ip_address ] && [ x$alias_ip_address != x ]; then ifconfig $interface inet alias $alias_ip_address $alias_subnet_arg - route add $alias_ip_address 127.0.0.1 + route add $alias_ip_address 127.0.0.1 1 > /dev/null 2>&1 fi echo search $new_domain_name >/etc/resolv.conf for nameserver in $new_domain_name_servers; do @@ -102,7 +102,7 @@ if [ x$reason = xEXPIRE ] || [ x$reason = xFAIL ]; then fi if [ x$alias_ip_address != x ]; then ifconfig $interface inet alias $alias_ip_address $alias_subnet_arg - route add $alias_ip_address 127.0.0.1 + route add $alias_ip_address 127.0.0.1 1 >/dev/null 2>&1 fi exit 0 fi @@ -120,11 +120,11 @@ if [ x$reason = xTIMEOUT ]; then if [ x$new_ip_address != x$alias_ip_address ] && \ [ x$alias_ip_address != x ]; then ifconfig $interface inet alias $alias_ip_address $alias_subnet_arg - route add $alias_ip_address 127.0.0.1 + route add $alias_ip_address 127.0.0.1 1 > /dev/null 2>&1 fi - route add $new_ip_address 127.1 >/dev/null 2>&1 + route add $new_ip_address 127.1 1 >/dev/null 2>&1 for router in $new_routers; do - route add default $router >/dev/null 2>&1 + route add default $router 1 >/dev/null 2>&1 done echo search $new_domain_name >/etc/resolv.conf.std for nameserver in $new_domain_name_servers; do