summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1994-06-29 20:29:12 +0000
committerjkh <jkh@FreeBSD.org>1994-06-29 20:29:12 +0000
commitbe1084404ef0d8f27221a160848ee446c3c8c0e1 (patch)
treeece7dd69700a1f03201c3d94a2133e3b2c7f0f47
parentd504a6336549beec68ab0f4f196e9659c9956985 (diff)
downloadFreeBSD-src-be1084404ef0d8f27221a160848ee446c3c8c0e1.zip
FreeBSD-src-be1084404ef0d8f27221a160848ee446c3c8c0e1.tar.gz
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.
-rw-r--r--etc/etc.i386/cpio.magic13
1 files changed, 12 insertions, 1 deletions
diff --git a/etc/etc.i386/cpio.magic b/etc/etc.i386/cpio.magic
index 470f48a..0e4ed0c 100644
--- a/etc/etc.i386/cpio.magic
+++ b/etc/etc.i386/cpio.magic
@@ -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 |
OpenPOWER on IntegriCloud