]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Add route hop counts to all route commands.
authorTed Lemon <source@isc.org>
Sun, 14 Feb 1999 18:38:59 +0000 (18:38 +0000)
committerTed Lemon <source@isc.org>
Sun, 14 Feb 1999 18:38:59 +0000 (18:38 +0000)
client/scripts/solaris

index 4f60ebaa7e1a92880c6624495cfec36b2919f763..0f5a253a9c5faa7a23c53f7d087b5ee578f45853 100755 (executable)
@@ -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 >/dev/null 2>&1
     for router in $new_routers; do
-      route add default $router >/dev/null 2>&1
+      route add default $router >/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 >/dev/null 2>&1
     for router in $new_routers; do
-      route add default $router >/dev/null 2>&1
+      route add default $router >/dev/null 2>&1
     done
     echo search $new_domain_name >/etc/resolv.conf.std
     for nameserver in $new_domain_name_servers; do