summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorrgrimes <rgrimes@FreeBSD.org>1994-04-18 06:44:43 +0000
committerrgrimes <rgrimes@FreeBSD.org>1994-04-18 06:44:43 +0000
commit9230c3713f372ead64308236fd93aa6658f9deb7 (patch)
tree664b53dbdb4939d3888d3212f1d72dc85f3b8e0d /etc
parent39955230ef5ba1f840d2b12cc0e2c4b332519356 (diff)
downloadFreeBSD-src-9230c3713f372ead64308236fd93aa6658f9deb7.zip
FreeBSD-src-9230c3713f372ead64308236fd93aa6658f9deb7.tar.gz
>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. ----------------------------
Diffstat (limited to 'etc')
-rwxr-xr-xetc/netstart14
1 files changed, 10 insertions, 4 deletions
diff --git a/etc/netstart b/etc/netstart
index e045423..718aa16 100755
--- a/etc/netstart
+++ b/etc/netstart
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $Id: netstart,v 1.7 1993/11/07 01:19:02 wollman Exp $
+# $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
@@ -20,9 +20,15 @@ sendmail_flags="-bd -q30m"
hostname=`cat /etc/myname`
hostname $hostname
-# ifconfig ie0 inet $hostname netmask my-netmask
-# ifconfig is0 inet $hostname netmask my-netmask
-# ifconfig ed0 inet $hostname netmask my-netmask
+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
OpenPOWER on IntegriCloud