mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
23 lines
643 B
Bash
23 lines
643 B
Bash
#!/bin/sh
|
|
# $Id: extract_bin.sh,v 1.2 1995/01/28 09:04:09 jkh Exp $
|
|
PATH=/stand:$PATH
|
|
DDIR=/
|
|
|
|
# Temporary kludge for pathological bindist.
|
|
if [ -f $DDIR/etc/myname ]; then
|
|
cp $DDIR/etc/hosts $DDIR/etc/myname $DDIR/stand/etc
|
|
fi
|
|
if [ -f $DDIR/etc/defaultrouter ]; then
|
|
cp $DDIR/etc/defaultrouter $DDIR/stand/etc
|
|
fi
|
|
cat bin.?? | gzip -c -d | ( cd $DDIR; cpio -H tar -imdu )
|
|
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
|
|
if [ -f $DDIR/stand/etc/defaultrouter ]; then
|
|
cp $DDIR/stand/etc/defaultrouter $DDIR/etc
|
|
fi
|
|
chmod 1777 /tmp
|