diff options
author | roger <roger@FreeBSD.org> | 2000-07-03 22:31:08 +0000 |
---|---|---|
committer | roger <roger@FreeBSD.org> | 2000-07-03 22:31:08 +0000 |
commit | b76d84240a240a4e7c75f2b79fbf3a3043ae6fbe (patch) | |
tree | bdcde2dc1c34873fc15a1667088dd5402d77bc76 | |
parent | d3f3e6e29462be34b3e5635a6ebde64bc1a3dc70 (diff) | |
download | FreeBSD-src-b76d84240a240a4e7c75f2b79fbf3a3043ae6fbe.zip FreeBSD-src-b76d84240a240a4e7c75f2b79fbf3a3043ae6fbe.tar.gz |
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.}
-rw-r--r-- | release/picobsd/mfs_tree/etc/rc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/release/picobsd/mfs_tree/etc/rc b/release/picobsd/mfs_tree/etc/rc index 79fddf5..c5838cc 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 |