1993-06-20 13:41:45 +00:00
|
|
|
#!/bin/sh -
|
|
|
|
#
|
1994-09-15 01:19:43 +00:00
|
|
|
# $Id: netstart,v 1.12 1994/06/17 19:29:05 jkh Exp $
|
1993-11-07 01:19:06 +00:00
|
|
|
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
|
1993-06-20 13:41:45 +00:00
|
|
|
|
1994-09-15 01:19:43 +00:00
|
|
|
defaultrouter=NO
|
1993-06-20 13:41:45 +00:00
|
|
|
routedflags=-q
|
1993-07-19 21:08:53 +00:00
|
|
|
timedflags=NO
|
1993-12-21 21:28:12 +00:00
|
|
|
xntpdflags="NO"
|
|
|
|
ntpdate="NO"
|
1993-06-20 13:41:45 +00:00
|
|
|
rwhod=NO
|
1993-11-07 01:19:06 +00:00
|
|
|
sendmail_flags="-bd -q30m"
|
1993-07-19 21:08:53 +00:00
|
|
|
#kerberos_server=YES
|
|
|
|
#nfs_server=YES
|
|
|
|
#name_server=YES
|
|
|
|
#gated=YES
|
1993-06-20 13:41:45 +00:00
|
|
|
|
1993-07-19 21:08:53 +00:00
|
|
|
# my-name is my symbolic name
|
|
|
|
# my-netmask is specified in /etc/networks
|
1993-06-20 13:41:45 +00:00
|
|
|
#
|
1993-07-19 19:14:45 +00:00
|
|
|
hostname=`cat /etc/myname`
|
1993-06-20 13:41:45 +00:00
|
|
|
hostname $hostname
|
1993-07-19 19:14:45 +00:00
|
|
|
|
1994-09-15 01:19:43 +00:00
|
|
|
for i in /etc/hostname.*
|
|
|
|
do
|
|
|
|
ifn=`expr $i : '/etc/hostname\.\(.*\)'`
|
|
|
|
if [ -e /etc/hostname.$ifn ]; then
|
|
|
|
if [ -e /etc/start_if.$ifn ]; then
|
|
|
|
sh /etc/start_if.$ifn $ifn
|
|
|
|
fi
|
|
|
|
ifconfig $ifn `cat /etc/hostname.$ifn`
|
|
|
|
ifconfig $ifn
|
|
|
|
fi
|
|
|
|
done
|
1993-06-20 13:41:45 +00:00
|
|
|
|
|
|
|
# set the address for the loopback interface
|
1993-07-19 19:14:45 +00:00
|
|
|
ifconfig lo0 inet localhost
|
1993-06-20 13:41:45 +00:00
|
|
|
|
1994-09-15 01:19:43 +00:00
|
|
|
if [ -n "$defaultrouter" -a "x$defaultrouter" != "xNO" ] ; then
|
|
|
|
route add default $defaultrouter
|
|
|
|
elif [ -f /etc/defaultrouter ] ; then
|
|
|
|
route add default `cat /etc/defaultrouter`
|
|
|
|
fi
|
|
|
|
|
1993-06-20 13:41:45 +00:00
|
|
|
# use loopback, not the wire
|
1993-07-19 21:08:53 +00:00
|
|
|
# route add $hostname localhost
|