From owner-freebsd-current Tue Mar 7 17:14:53 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id RAA01996 for current-outgoing; Tue, 7 Mar 1995 17:14:53 -0800 Received: from vector.eikon.e-technik.tu-muenchen.de (vector.eikon.e-technik.tu-muenchen.de [129.187.142.36]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id RAA01710; Tue, 7 Mar 1995 17:01:24 -0800 Received: (from jhs@localhost) by vector.eikon.e-technik.tu-muenchen.de (8.6.9/8.6.9) id LAA15059; Tue, 7 Mar 1995 11:17:39 +0100 Date: Tue, 7 Mar 1995 11:17:39 +0100 From: Julian Howard Stacey Message-Id: <199503071017.LAA15059@vector.eikon.e-technik.tu-muenchen.de> To: rgrimes@freefall.cdrom.com Cc: current@FreeBSD.org Sender: current-owner@FreeBSD.org Precedence: bulk Hi Rod, Cc Current I have improved my modification for /etc/netstart somewhat, & am using it, but I still can't test it completely, as although I have a 2nd nfs mounted system here now, I don't share an nfs mounted /usr (all my existing bins are 486, the system visiting me is a 386) Perhaps you (or another NFS user such as Nate) would care to review or comment ? # Prepare an 'ed' script # to allow /etc/hostname.* to have '^#' delimited comments, and blank lines. # ('ed' used as 'usr/bin/grep' on nfs systems is not yet mounted). hostname_tmp=/tmp hostname_ed=hostname.ed # The next 4 lines & rm below could be avoided with a permanent $hostname_ed. echo "g/^#/d" > $hostname_tmp/$hostname_ed echo "g/^$/d" > $hostname_tmp/$hostname_ed echo "p" >> $hostname_tmp/$hostname_ed echo "q" >> $hostname_tmp/$hostname_ed for i in /etc/hostname.* do # { ifn=`expr $i : '/etc/hostname\.\(.*\)'` # ifn gets ed0, sl0 etc if [ -e /etc/hostname.$ifn ]; then if [ -e /etc/start_if.$ifn ]; then sh /etc/start_if.$ifn $ifn fi ed -s - /etc/hostname.$ifn \ < $hostname_tmp/$hostname_ed \ > $hostname_tmp/hostname.$ifn.tmp ifconfig $ifn `cat $hostname_tmp/hostname.$ifn.tmp` ifconfig $ifn # show status rm $hostname_tmp/hostname.$ifn.tmp fi done # } rm $hostname_tmp/$hostname_ed --- Julian Stacey , Intermittent SL/IP: