2 # $Id: extract.sh,v 1.16 1994/11/29 00:56:30 jkh Exp $
6 if [ -f bindist.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
11 if [ -f $DDIR/etc/defaultrouter ]; then
12 cp $DDIR/etc/defaultrouter $DDIR/stand/etc
14 echo; echo "Extracting bindist, please wait."
15 cat bindist.?? | gzip -c -d | ( cd $DDIR; cpio -H tar -imdu )
16 if [ -f $DDIR/stand/etc/myname ]; then
17 # Add back what the bindist nuked.
18 cp $DDIR/stand/etc/myname $DDIR/etc
19 cat $DDIR/stand/etc/hosts >> $DDIR/etc/hosts
21 if [ -f $DDIR/stand/etc/defaultrouter ]; then
22 cp $DDIR/stand/etc/defaultrouter $DDIR/etc
26 ln -s /usr/src/sys /sys
32 if [ "$b" != bindist ] ; then
33 if [ "$b" = des ] ; then
34 # We cannot replace /sbin/init while it runs
35 # so move it out of the way for now
36 mv /sbin/init /sbin/non_des_init
39 cat $b.?? | gzip -c -d | ( cd $DDIR; cpio -H tar -imdu )