Make sure that homicidal bindist doesn't clobber my /etc/defaultrouter

file, either.
This commit is contained in:
Jordan K. Hubbard 1994-11-18 10:22:39 +00:00
parent 66706b4367
commit 9757986c55

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $Id: extract.sh,v 1.11 1994/11/17 11:53:12 jkh Exp $
# $Id: extract.sh,v 1.12 1994/11/18 10:05:36 jkh Exp $
PATH=/stand:$PATH
DDIR=/
@ -8,6 +8,9 @@ if [ -f bin_tgz.aa ] ; then
if [ -f $DDIR/etc/myname ]; then
cp $DDIR/etc/hosts $DDIR/etc/myname $DDIR/stand/etc
fi
if [ -f $DDIR/etc/defaultrouter ]; then
cp $DDIR/etc/defaultrouter $DDIR/stand/etc
fi
echo; echo "Extracting bindist, please wait."
cat bin_tgz.?? | gzip -c -d | ( cd $DDIR; cpio -H tar -imdu )
if [ -f $DDIR/stand/etc/myname ]; then
@ -15,6 +18,9 @@ if [ -f bin_tgz.aa ] ; then
cp $DDIR/stand/etc/myname $DDIR/etc
cat $DDIR/stand/etc/hosts >> $DDIR/etc/hosts
fi
if [ -f $DDIR/stand/etc/defaultrouter ]; then
cp $DDIR/stand/etc/defaultrouter $DDIR/etc
fi
fi
for i in *.aa