]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - release/extract.sh
This commit was generated by cvs2svn to compensate for changes in r4374,
[FreeBSD/FreeBSD.git] / release / extract.sh
1 #!/bin/sh
2 # $Id: extract.sh,v 1.8 1994/11/10 03:22:27 phk Exp $
3
4 DDIR=/
5
6 if [ -f bin_tgz.aa ] ; then
7         # Temporary kludge for pathological bindist.
8         cp $DDIR/etc/hosts $DDIR/etc/myname $DDIR/stand/etc
9         echo; echo "Extracting bindist, please wait.  Ignore any messages from"
10         echo "cpio saying \"No such file or directory\".  It doesn't know what"
11         echo "it's talking about.."; echo
12         cat bin_tgz.?? | zcat | ( cd $DDIR ; cpio -H tar -idumV )
13         # Add back what the bindist nuked.
14         cp $DDIR/stand/etc/myname $DDIR/etc
15         cat $DDIR/stand/etc/hosts >> $DDIR/etc/hosts
16 fi
17
18 for i in *.aa
19 do
20         b=`basename $i .aa`
21         if [ "$b" != bin_tgz ] ; then
22                 if [ "$b" = des_tgz ] ; then
23                         # We cannot replace /sbin/init while it runs
24                         # so move it out of the way for now
25                         mv /sbin/init /sbin/nondes_init
26                 fi
27                 echo "Extracting $b"
28                 cat $b.?? | zcat | ( cd $DDIR ; cpio -H tar -idumV )
29         fi
30 done