summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1994-06-28 07:20:30 +0000
committerjkh <jkh@FreeBSD.org>1994-06-28 07:20:30 +0000
commit04b81774933d81b0ed49702dab0336823cedff14 (patch)
treea81e9b179ce840daf3901a5e5c8106b92d5927e8 /etc
parent032e36e1c30eb07d06117e3236c96edc221d55b5 (diff)
downloadFreeBSD-src-04b81774933d81b0ed49702dab0336823cedff14.zip
FreeBSD-src-04b81774933d81b0ed49702dab0336823cedff14.tar.gz
Remove Rod's hacks - they're no longer necessary with static tar/gzip and
tar --unlink.
Diffstat (limited to 'etc')
-rw-r--r--etc/etc.i386/cpio.magic29
1 files changed, 6 insertions, 23 deletions
diff --git a/etc/etc.i386/cpio.magic b/etc/etc.i386/cpio.magic
index 6c8607a..470f48a 100644
--- a/etc/etc.i386/cpio.magic
+++ b/etc/etc.i386/cpio.magic
@@ -1,5 +1,5 @@
#!bin/sh
-# $Id: cpio.magic,v 1.10 1994/06/15 21:02:36 jkh Exp $
+# $Id: cpio.magic,v 1.11 1994/06/15 21:04:04 jkh Exp $
#
set_tmp_dir()
{
@@ -219,14 +219,14 @@ load_qic_tape()
tmp_dir
echo -n "Insert tape into QIC tape drive and hit return to continue: "
read foo
- tar xvf /dev/rwt0
+ tar --unlink -xvf /dev/rwt0
}
load_scsi_tape()
{
tmp_dir
echo -n "Insert tape into SCSI tape drive and hit return to continue: "
read foo
- tar xvf /dev/nrst0
+ tar --unlink -xvf /dev/nrst0
}
extract()
{
@@ -242,28 +242,11 @@ extract()
tarverbose=
;;
esac
- #XXX ugly hack to eliminate busy files, copy them to /tmp and use them
- #from there... even uglier.. we CAN NOT LOAD libc.so.1.1 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 |
- (cd / ; /tmp/tar --extract --file - --preserve-permissions ${tarverbose} )
+ cat "$i"* |
+ gunzip |
+ (cd / ; tar --unlink --extract --file - --preserve-permissions ${tarverbose} )
done
- rm -f /tmp/cat /tmp/gunzip /tmp/tar
sync
[ X"$1" = X"bin" ] && echo "Run \`configure' to complete installation."
echo "(wd is now: `pwd`)"
OpenPOWER on IntegriCloud