mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
Remove preservation of myname and defaultrouter files - they're deprecated
anyway.
This commit is contained in:
parent
6b234a88dc
commit
845f1b7740
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=7687
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# $Id: extract_bin.sh,v 1.3 1995/01/28 09:11:32 jkh Exp $
|
# $Id: extract_bin.sh,v 1.4 1995/03/28 18:14:10 phk Exp $
|
||||||
PATH=/stand:$PATH
|
PATH=/stand:$PATH
|
||||||
DDIR=/
|
DDIR=/
|
||||||
|
|
||||||
@ -7,21 +7,7 @@ DDIR=/
|
|||||||
if [ -f $DDIR/etc/sysconfig ]; then
|
if [ -f $DDIR/etc/sysconfig ]; then
|
||||||
mv $DDIR/etc/sysconfig $DDIR/etc/sysconfig.save
|
mv $DDIR/etc/sysconfig $DDIR/etc/sysconfig.save
|
||||||
fi
|
fi
|
||||||
if [ -f $DDIR/etc/myname ]; then
|
|
||||||
cp $DDIR/etc/hosts $DDIR/etc/myname $DDIR/stand/etc
|
|
||||||
fi
|
|
||||||
if [ -f $DDIR/etc/defaultrouter ]; then
|
|
||||||
cp $DDIR/etc/defaultrouter $DDIR/stand/etc
|
|
||||||
fi
|
|
||||||
cat bin.?? | gzip -c -d | ( cd $DDIR; cpio -H tar -imdu )
|
cat bin.?? | gzip -c -d | ( cd $DDIR; cpio -H tar -imdu )
|
||||||
if [ -f $DDIR/stand/etc/myname ]; then
|
|
||||||
# Add back what the bindist nuked.
|
|
||||||
cp $DDIR/stand/etc/myname $DDIR/etc
|
|
||||||
cat $DDIR/stand/etc/hosts >> $DDIR/etc/hosts
|
|
||||||
fi
|
|
||||||
if [ -f $DDIR/stand/etc/defaultrouter ]; then
|
|
||||||
cp $DDIR/stand/etc/defaultrouter $DDIR/etc
|
|
||||||
fi
|
|
||||||
if [ -f $DDIR/etc/sysconfig.save ]; then
|
if [ -f $DDIR/etc/sysconfig.save ]; then
|
||||||
mv $DDIR/etc/sysconfig.save $DDIR/etc/sysconfig
|
mv $DDIR/etc/sysconfig.save $DDIR/etc/sysconfig
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user