remove rc and login.conf files prior to extraction of the new

rc and login.conf files from the /etc directory on the floppy.

This prevents the overwrite yes/no prompt from occuring in gzip.
(some PicoBSD disks use gzip and some use minigzip, so the gzip -f flag (force)
is not an option. minigzip has a different meaning for the -f flag.}
This commit is contained in:
Roger Hardiman 2000-07-03 22:31:08 +00:00
parent ebd0e335d0
commit 85ae82d6f6

View File

@ -1,7 +1,7 @@
#!/bin/sh
# $FreeBSD$
# WARNING !!! We remove this file during execution (see EOF).
# Awful things happen if its size is > 1024B
# WARNING !!! We overwrite this file during execution with a new rc file.
# Awful things happen if this file's size is > 1024B
stty status '^T'
trap : 2
@ -20,6 +20,8 @@ mount -o rdonly ${dev} /mnt
cd /mnt/etc ; cp -Rp . /etc/
cp -Rp /mnt/root /
cd /etc
#rm files to stop overwrite warning
rm rc login.conf
gzip -d *.gz
pwd_mkdb -p ./master.passwd
umount /mnt