>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.
This commit is contained in:
Rodney W. Grimes 1994-04-17 19:57:35 +00:00
parent 16157b233d
commit 863c4478c0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=1365

View File

@ -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 |