[BACK]Return to netstart CVS log [TXT][DIR] Up to [local] / src / etc

Diff for /src/etc/netstart between version 1.40 and 1.41

version 1.40, 1998/08/24 09:32:50 version 1.41, 1998/09/08 20:26:41
Line 38 
Line 38 
 route -n add -host $hostname localhost  route -n add -host $hostname localhost
 route -n add -net 127 127.0.0.1 -reject  route -n add -net 127 127.0.0.1 -reject
   
   if [ "X${dhcp_client}" != X"NO" ]; then
   # Do DHCP discovery
         dhclient ${dhcp_client}
   else
 # configure all of the non-loopback interfaces which we know about.  # configure all of the non-loopback interfaces which we know about.
 # do this by reading /etc/hostname.* files, where * is the name  # do this by reading /etc/hostname.* files, where * is the name
 # of a given interface.  # of a given interface.
Line 61 
Line 65 
 # the only required contents of the file are the addr_family field  # the only required contents of the file are the addr_family field
 # and the hostname.  # and the hostname.
   
 (      (
     tmp="$IFS"      tmp="$IFS"
     IFS="$IFS."      IFS="$IFS."
     set -- `echo /etc/hostname*`      set -- `echo /etc/hostname*`
Line 91 
Line 95 
         ) < /etc/hostname.$1          ) < /etc/hostname.$1
         shift          shift
     done      done
 )      )
   
 # /etc/mygate, if it exists, contains the name of my gateway host  # /etc/mygate, if it exists, contains the name of my gateway host
 # that name must be in /etc/hosts.  # that name must be in /etc/hosts.
 if [ -f /etc/mygate ]; then      if [ -f /etc/mygate ]; then
         route -n add -host default `cat /etc/mygate`          route -n add -host default `cat /etc/mygate`
   
         # default multicast route for hosts with a gateway          # default multicast route for hosts with a gateway
         route -n add -net 224.0.0.0 -interface default          route -n add -net 224.0.0.0 -interface default
 else      else
         # default multicast route          # default multicast route
         route -n add -net 224.0.0.0 -interface $hostname          route -n add -net 224.0.0.0 -interface $hostname
       fi
 fi  fi

Legend:
Removed from v.1.40  
changed lines
  Added in v.1.41