Date: Tue, 7 Mar 1995 11:17:39 +0100 From: Julian Howard Stacey <jhs@regent.e-technik.tu-muenchen.de> To: rgrimes@freefall.cdrom.com Cc: current@FreeBSD.org Message-ID: <199503071017.LAA15059@vector.eikon.e-technik.tu-muenchen.de>
next in thread | raw e-mail | index | archive | help
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 <jhs@freebsd.org>,<jhs@regent.e-technik.tu-muenchen.de>
Intermittent SL/IP: <jhs@vector.eikon.e-technik.tu-muenchen.de>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199503071017.LAA15059>
