From 74d091bf0aa7ebad9a61dfa2e86fe292070dc7e0 Mon Sep 17 00:00:00 2001 From: "Rodney W. Grimes" Date: Mon, 18 Apr 1994 06:44:43 +0000 Subject: [PATCH] >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. ---------------------------- --- etc/netstart | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/etc/netstart b/etc/netstart index e045423056a0..718aa16f3caf 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