diff options
author | jkh <jkh@FreeBSD.org> | 1994-11-12 09:55:29 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1994-11-12 09:55:29 +0000 |
commit | 9efef549e28bf8e556d5a1e4f2834bf71c2d72c9 (patch) | |
tree | 76bdfa11aae8e2f9396a94ddf730c8d847ea9712 /release/extract.sh | |
parent | 8ddc202ee3e9cefd48e2a983be367960c4dc3bcc (diff) | |
download | FreeBSD-src-9efef549e28bf8e556d5a1e4f2834bf71c2d72c9.zip FreeBSD-src-9efef549e28bf8e556d5a1e4f2834bf71c2d72c9.tar.gz |
When this is run manually, the myname protection stuff probably isn't
needed in all cases. Guard against this.
Diffstat (limited to 'release/extract.sh')
-rw-r--r-- | release/extract.sh | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/release/extract.sh b/release/extract.sh index 06ada6e..e94b641 100644 --- a/release/extract.sh +++ b/release/extract.sh @@ -1,18 +1,22 @@ #!/bin/sh -# $Id: extract.sh,v 1.8 1994/11/10 03:22:27 phk Exp $ +# $Id: extract.sh,v 1.9 1994/11/11 23:27:05 jkh Exp $ DDIR=/ if [ -f bin_tgz.aa ] ; then # Temporary kludge for pathological bindist. - cp $DDIR/etc/hosts $DDIR/etc/myname $DDIR/stand/etc + if [ -f $DDIR/etc/myname ]; then + cp $DDIR/etc/hosts $DDIR/etc/myname $DDIR/stand/etc + fi echo; echo "Extracting bindist, please wait. Ignore any messages from" echo "cpio saying \"No such file or directory\". It doesn't know what" echo "it's talking about.."; echo cat bin_tgz.?? | zcat | ( cd $DDIR ; cpio -H tar -idumV ) - # Add back what the bindist nuked. - cp $DDIR/stand/etc/myname $DDIR/etc - cat $DDIR/stand/etc/hosts >> $DDIR/etc/hosts + if [ -f $DDIR/stand/etc/myname ]; then + # Add back what the bindist nuked. + cp $DDIR/stand/etc/myname $DDIR/etc + cat $DDIR/stand/etc/hosts >> $DDIR/etc/hosts + fi fi for i in *.aa |