From 85ae82d6f69216777b132213a79acb9e8f0a0003 Mon Sep 17 00:00:00 2001 From: Roger Hardiman Date: Mon, 3 Jul 2000 22:31:08 +0000 Subject: 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.} --- release/picobsd/mfs_tree/etc/rc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'release/picobsd/mfs_tree') diff --git a/release/picobsd/mfs_tree/etc/rc b/release/picobsd/mfs_tree/etc/rc index 79fddf5d18d0..c5838cce4d4f 100644 --- a/release/picobsd/mfs_tree/etc/rc +++ b/release/picobsd/mfs_tree/etc/rc @@ -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 -- cgit v1.2.3