summaryrefslogtreecommitdiffstats
path: root/etc/netstart
blob: a953943a1f4ec32fd6735d3df87708af351488c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/sh -
#
#	$Id: netstart,v 1.11 1994/05/04 08:59:52 rgrimes Exp $
#	From: @(#)netstart	5.9 (Berkeley) 3/30/91

routedflags=-q
timedflags=NO
xntpdflags="NO"
ntpdate="NO"
rwhod=NO
sendmail_flags="-bd -q30m"
#kerberos_server=YES
#nfs_server=YES
#name_server=YES
#gated=YES

# my-name is my symbolic name
# my-netmask is specified in /etc/networks
#
hostname=`cat /etc/myname`
hostname $hostname

if [ -e /etc/hostname.ed0 ]; then
	ifconfig ed0 `cat /etc/hostname.ed0`
fi
if [ -e /etc/hostname.ed1 ]; then
	ifconfig ed1 `cat /etc/hostname.ed1`
fi
if [ -e /etc/hostname.ie0 ]; then
	ifconfig ie0 `cat /etc/hostname.ie0`
fi
if [ -e /etc/hostname.is0 ]; then
	ifconfig is0 `cat /etc/hostname.is0`
fi
if [ -e /etc/hostname.ze0 ]; then
	ifconfig ze0 `cat /etc/hostname.ze0`
fi

# set the address for the loopback interface
ifconfig lo0 inet localhost

# use loopback, not the wire
# route add $hostname localhost
OpenPOWER on IntegriCloud