1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-14 14:55:41 +00:00

Put some of Rod's ugly hacks back - a couple of them prevent Yet Another Reboot

after bin/des distribution is extracted, so I figure it's worth it.
This commit is contained in:
Jordan K. Hubbard 1994-06-29 20:29:12 +00:00
parent 9a6939ee0a
commit c7d2a2ef65
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=1783

View File

@ -1,5 +1,5 @@
#!bin/sh
# $Id: cpio.magic,v 1.11 1994/06/15 21:04:04 jkh Exp $
# $Id: cpio.magic,v 1.12 1994/06/28 07:20:30 jkh Exp $
#
set_tmp_dir()
{
@ -242,6 +242,17 @@ extract()
tarverbose=
;;
esac
#XXX ugly hacks to get around busy text files/symlink problems.
if [ X"$1" = X"bin" ]; then
rm -f /bin/sh.$$ /sbin/init.$$ /etc/termcap.$$
mv /bin/sh /bin/sh.$$
mv /sbin/init /sbin/init.$$
mv /etc/termcap /etc/termcap.$$
fi
if [ X"$1" = X"des" ]; then
rm -f /sbin/init.$$
mv /sbin/init /sbin/init.$$
fi
for i in $*; do
cat "$i"* |
gunzip |