This commit was manufactured by cvs2svn to create tag 'FreeBSD-release/1.1'.
[unix-history] / etc / netstart
CommitLineData
25767e9e
RG
1#!/bin/sh -
2#
c2714ef5 3# $Id: netstart,v 1.8.2.2 1994/04/18 10:49:46 rgrimes Exp $
d33b56c6 4# From: @(#)netstart 5.9 (Berkeley) 3/30/91
25767e9e
RG
5
6routedflags=-q
67c1c3f5 7timedflags=NO
6e66fe1e
GW
8xntpdflags="NO"
9ntpdate="NO"
25767e9e 10rwhod=NO
d33b56c6 11sendmail_flags="-bd -q30m"
67c1c3f5
RG
12#kerberos_server=YES
13#nfs_server=YES
14#name_server=YES
15#gated=YES
25767e9e 16
67c1c3f5
RG
17# my-name is my symbolic name
18# my-netmask is specified in /etc/networks
25767e9e 19#
c70d8950 20hostname=`cat /etc/myname`
25767e9e 21hostname $hostname
c70d8950 22
c2714ef5 23if [ -e /etc/hostname.ed0 ]; then
24 ifconfig ed0 `cat /etc/hostname.ed0`
25fi
26if [ -e /etc/hostname.ed1 ]; then
27 ifconfig ed1 `cat /etc/hostname.ed1`
28fi
29if [ -e /etc/hostname.ie0 ]; then
30 ifconfig ie0 `cat /etc/hostname.ie0`
31fi
32if [ -e /etc/hostname.is0 ]; then
33 ifconfig is0 `cat /etc/hostname.is0`
34fi
25767e9e
RG
35
36# set the address for the loopback interface
c70d8950 37ifconfig lo0 inet localhost
25767e9e
RG
38
39# use loopback, not the wire
67c1c3f5 40# route add $hostname localhost