freebsd-skq/release/scripts/extract_secure.sh

20 lines
469 B
Bash
Raw Normal View History

1995-01-14 07:41:52 +00:00
#!/bin/sh
# $Id: extract_secure.sh,v 1.6 1995/04/07 01:20:26 phk Exp $
set -e
1995-01-14 07:41:52 +00:00
PATH=/stand:$PATH
DDIR=/
DIST=secure
# You can't write over the running init
if [ -f /sbin/init ]; then mv /sbin/init /sbin/init.insecure; fi
1995-01-14 07:41:52 +00:00
cat ${DIST}.?? | gzip -c -d | ( cd $DDIR; cpio -H tar -imdu )
1995-01-27 07:49:46 +00:00
DDIR=/usr/src
for DIST in sebones ssecure ; do
1995-01-27 07:49:46 +00:00
if [ -f ${DIST}.aa ]; then
echo "Extracting ${DIST} sources"
cat ${DIST}.?? | gzip -c -d | ( cd $DDIR; cpio -H tar -imdu )
fi
done