3 # $Id: netstart,v 1.16 1994/11/02 23:50:54 phk Exp $
4 # From: @(#)netstart 5.9 (Berkeley) 3/30/91
12 sendmail_flags="-bd -q30m"
21 # my-name is my symbolic name
22 # my-netmask is specified in /etc/networks
24 if [ -z "`hostname -s`" ] ; then
25 hostname=`cat /etc/myname`
29 for i in /etc/hostname.*
31 ifn=`expr $i : '/etc/hostname\.\(.*\)'`
32 if [ -e /etc/hostname.$ifn ]; then
33 if [ -e /etc/start_if.$ifn ]; then
34 sh /etc/start_if.$ifn $ifn
36 ifconfig $ifn `cat /etc/hostname.$ifn`
41 # set the address for the loopback interface
42 ifconfig lo0 inet localhost
44 # set interface for multicasts to default interface
45 # this needs to happen before router discovery
46 route add 224.0.0.0 -netmask 0xf0000000 -interface $hostname
48 if [ -n "$defaultrouter" -a "x$defaultrouter" != "xNO" ] ; then
49 route add default $defaultrouter
50 elif [ -f /etc/defaultrouter ] ; then
51 route add default `cat /etc/defaultrouter`
54 # use loopback, not the wire
55 # route add $hostname localhost