summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorrgrimes <rgrimes@FreeBSD.org>1994-04-17 19:57:35 +0000
committerrgrimes <rgrimes@FreeBSD.org>1994-04-17 19:57:35 +0000
commit1205808a32420559e068a98ee6e93bb9cf04f12f (patch)
treec3fc4b9dae12bfd62839aed497bb5762c296fca0 /etc
parentb6741361c8792a79af83a38e4660d8aa8f4e551f (diff)
downloadFreeBSD-src-1205808a32420559e068a98ee6e93bb9cf04f12f.zip
FreeBSD-src-1205808a32420559e068a98ee6e93bb9cf04f12f.tar.gz
>From BETA_1_1 branch:
---------------------------- revision 1.2.2.3 date: 1994/04/17 19:45:24; author: rgrimes; state: Exp; lines: +13 -2 Eliminate warning messages about /sbin/sh /sbin/init and /etc/termcap when extracting the bin or des archives. Note this is also the place I fixed the libc.so.1.0 problem a long time ago by adding a --exclude libc.so.1.0 to the tar command.
Diffstat (limited to 'etc')
-rw-r--r--etc/etc.i386/cpio.magic15
1 files changed, 13 insertions, 2 deletions
diff --git a/etc/etc.i386/cpio.magic b/etc/etc.i386/cpio.magic
index 31d2b260..02a5ae1 100644
--- a/etc/etc.i386/cpio.magic
+++ b/etc/etc.i386/cpio.magic
@@ -1,5 +1,5 @@
#!bin/sh
-# $Id: cpio.magic,v 1.3 1994/02/25 23:34:08 alm Exp $
+# $Id: cpio.magic,v 1.4 1994/03/18 03:09:49 rgrimes Exp $
#
set_tmp_dir()
{
@@ -246,7 +246,18 @@ extract()
#from there... even uglier.. we CAN NOT LOAD libc.so.1.0 from the tar
#balls or it spams tar!!
cp -p /bin/cat /usr/bin/gunzip /usr/bin/tar /tmp
-
+
+ #XXX more 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
/tmp/cat "$i"* |
/tmp/gunzip |
OpenPOWER on IntegriCloud