HardenedBSD/release/scripts/extract_bin.sh
Jordan K. Hubbard 02c931e63b Syntax errors corrected
Add support for Sony CDROM
1995-01-28 09:04:12 +00:00

24 lines
690 B
Bash

#!/bin/sh
# $Id: extract_bin.sh,v 1.1 1995/01/14 07:41:39 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
echo; echo "Extracting bindist, please wait."
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