summaryrefslogtreecommitdiffstats
path: root/release/scripts
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-03-28 18:14:10 +0000
committerphk <phk@FreeBSD.org>1995-03-28 18:14:10 +0000
commit69fb2ca8a183cbfc0fa148a1b927f736801be82b (patch)
treef29517c258abf72b4924190c46c71ddeef3d7750 /release/scripts
parent4405cff2a7354f57014c4cf9b1dc8d1d1d8aec1c (diff)
downloadFreeBSD-src-69fb2ca8a183cbfc0fa148a1b927f736801be82b.zip
FreeBSD-src-69fb2ca8a183cbfc0fa148a1b927f736801be82b.tar.gz
Save /etc/sysconfig from destruction.
Don't put termcap.db and vgrinddefs.db in the tarballs when they are so easy to generate and take up so much space...
Diffstat (limited to 'release/scripts')
-rw-r--r--release/scripts/extract_bin.sh18
1 files changed, 17 insertions, 1 deletions
diff --git a/release/scripts/extract_bin.sh b/release/scripts/extract_bin.sh
index ce3f6ca..6979f0b 100644
--- a/release/scripts/extract_bin.sh
+++ b/release/scripts/extract_bin.sh
@@ -1,9 +1,12 @@
#!/bin/sh
-# $Id: extract_bin.sh,v 1.2 1995/01/28 09:04:09 jkh Exp $
+# $Id: extract_bin.sh,v 1.3 1995/01/28 09:11:32 jkh Exp $
PATH=/stand:$PATH
DDIR=/
# Temporary kludge for pathological bindist.
+if [ -f $DDIR/etc/sysconfig ]; then
+ mv $DDIR/etc/sysconfig $DDIR/etc/sysconfig.save
+fi
if [ -f $DDIR/etc/myname ]; then
cp $DDIR/etc/hosts $DDIR/etc/myname $DDIR/stand/etc
fi
@@ -19,4 +22,17 @@ fi
if [ -f $DDIR/stand/etc/defaultrouter ]; then
cp $DDIR/stand/etc/defaultrouter $DDIR/etc
fi
+if [ -f $DDIR/etc/sysconfig.save ]; then
+ mv $DDIR/etc/sysconfig.save $DDIR/etc/sysconfig
+fi
+
+# Save some space in the tarballs by not sending these bloated files...
+cd /usr/share/misc
+for i in termcap vgrindefs
+do
+ /usr/bin/cap_mkdb $i
+ /usr/sbin/chown bin.bin $i.db
+ /bin/chmod 444 $i.db
+done
+
chmod 1777 /tmp
OpenPOWER on IntegriCloud