From a4c758d85cd8995aaeb0f9cfce3f293fe03d3f86 Mon Sep 17 00:00:00 2001 From: jkh Date: Fri, 9 Feb 1996 12:45:38 +0000 Subject: Close conf/1007 and take this opportunity to correct a few long-standing bogons with the way static_routes was being handled. Also document the fact that default_router overrides static_routes entirely. --- etc/netstart | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'etc/netstart') diff --git a/etc/netstart b/etc/netstart index 49c3523..b0a4a5a 100755 --- a/etc/netstart +++ b/etc/netstart @@ -1,6 +1,6 @@ #!/bin/sh - # -# $Id: netstart,v 1.39 1996/01/08 04:50:18 jkh Exp $ +# $Id: netstart,v 1.40 1996/01/31 15:02:24 mpp Exp $ # From: @(#)netstart 5.9 (Berkeley) 3/30/91 # Note that almost all the user-configurable behavior is no longer in @@ -49,10 +49,12 @@ if [ -n "$defaultrouter" -a "x$defaultrouter" != "xNO" ] ; then fi # Set up any static routes. This should be done before router discovery. -for i in ${static_routes}; do - eval route_args=\$route_${i} - route add ${route_args} -done +if [ "x${static_routes}" != "xNO" ]; then + for i in ${static_routes}; do + eval route_args=\$route_${i} + route add ${route_args} + done +fi if [ "x$gateway" != "xNO" ]; then echo 'configuring host as a gateway.' -- cgit v1.1