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