diff options
author | jkh <jkh@FreeBSD.org> | 1994-11-18 10:22:39 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1994-11-18 10:22:39 +0000 |
commit | 7a504b4b548f5d778c0797c269342d192a735308 (patch) | |
tree | fae9f1a8281a4eb193ce762753a94151a998e04f /release/extract.sh | |
parent | 2ef227667c13459032144221536ecf72dbf08e71 (diff) | |
download | FreeBSD-src-7a504b4b548f5d778c0797c269342d192a735308.zip FreeBSD-src-7a504b4b548f5d778c0797c269342d192a735308.tar.gz |
Make sure that homicidal bindist doesn't clobber my /etc/defaultrouter
file, either.
Diffstat (limited to 'release/extract.sh')
-rw-r--r-- | release/extract.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/release/extract.sh b/release/extract.sh index 793c1d2..29c63c3 100644 --- a/release/extract.sh +++ b/release/extract.sh @@ -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 |