freebsd-skq/release/extract.sh

31 lines
877 B
Bash
Raw Normal View History

#!/bin/sh
1994-11-10 03:22:27 +00:00
# $Id: extract.sh,v 1.7 1994/11/10 02:50:42 jkh Exp $
1994-11-10 02:24:47 +00:00
DDIR=/
if [ -f bin_tgz.aa ] ; then
# Temporary kludge for pathological bindist.
1994-11-10 02:24:47 +00:00
cp $DDIR/etc/hosts $DDIR/etc/myname $DDIR/stand/etc
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
1994-11-10 02:24:47 +00:00
cat bin_tgz.?? | zcat | ( cd $DDIR ; cpio -H tar -idumV )
# Add back what the bindist nuked.
1994-11-10 02:24:47 +00:00
cp $DDIR/stand/etc/myname $DDIR/etc
cat $DDIR/stand/etc/hosts >> $DDIR/etc/hosts
1994-11-06 23:47:06 +00:00
fi
1994-11-10 02:24:47 +00:00
for i in *.aa
do
b=`basename $i .aa`
if [ "$b" != bin_tgz ] ; then
1994-11-10 03:22:27 +00:00
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"
1994-11-10 03:22:27 +00:00
cat $b.?? | zcat | ( cd $DDIR ; tar --unlink -xf - )
1994-11-10 02:24:47 +00:00
fi
done