Do the right thing with init for secrdist.

This commit is contained in:
Jordan K. Hubbard 1995-01-14 07:44:23 +00:00
parent 4dcddd0cca
commit 30d561922b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=5583

View File

@ -1,8 +1,11 @@
#!/bin/sh
# $Id: extract.sh,v 1.17 1994/12/04 03:41:18 jkh Exp $
# $Id: extract_secure.sh,v 1.1 1995/01/14 07:41:45 jkh Exp $
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
echo "Extracting ${DIST}"
cat ${DIST}.?? | gzip -c -d | ( cd $DDIR; cpio -H tar -imdu )