freebsd-dev/etc/netstart
Rodney W. Grimes 74d091bf0a >From BETA_1_1 branch:
----------------------------
revision 1.8.2.1
date: 1994/04/18 06:37:29;  author: rgrimes;  state: Exp;  lines: +10 -4
Use the hostname.* files created by the installation to reduce the
amount of work one has to do when setting up a system.
----------------------------
1994-04-18 06:44:43 +00:00

38 lines
750 B
Bash
Executable File

#!/bin/sh -
#
# $Id: netstart,v 1.8.2.1 1994/04/18 06:37:29 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 `cat /etc/hostname.ed0`
fi
if [ -e /etc/hostname.ie0 ]; then
ifconfig `cat /etc/hostname.ie0`
fi
if [ -e /etc/hostname.is0 ]; then
ifconfig `cat /etc/hostname.is0`
fi
# set the address for the loopback interface
ifconfig lo0 inet localhost
# use loopback, not the wire
# route add $hostname localhost