mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-03 09:00:21 +00:00
263f1796af
needed in all cases. Guard against this.
35 lines
963 B
Bash
35 lines
963 B
Bash
#!/bin/sh
|
|
# $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.
|
|
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 )
|
|
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
|
|
do
|
|
b=`basename $i .aa`
|
|
if [ "$b" != bin_tgz ] ; then
|
|
if [ "$b" = des_tgz ] ; then
|
|
# We cannot replace /sbin/init while it runs
|
|
# so move it out of the way for now
|
|
mv /sbin/init /sbin/nondes_init
|
|
fi
|
|
echo "Extracting $b"
|
|
cat $b.?? | zcat | ( cd $DDIR ; cpio -H tar -idumV )
|
|
fi
|
|
done
|