diff options
author | Roger Hardiman <roger@FreeBSD.org> | 2000-07-03 22:31:08 +0000 |
---|---|---|
committer | Roger Hardiman <roger@FreeBSD.org> | 2000-07-03 22:31:08 +0000 |
commit | 85ae82d6f69216777b132213a79acb9e8f0a0003 (patch) | |
tree | 31cb7f48120ce4bea8f395d683d41dc989d75425 /release/picobsd/mfs_tree | |
parent | ebd0e335d086fb40d4d847092b264c293a625227 (diff) | |
download | src-85ae82d6f69216777b132213a79acb9e8f0a0003.tar.gz src-85ae82d6f69216777b132213a79acb9e8f0a0003.zip |
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.}
Notes
Notes:
svn path=/head/; revision=62486
Diffstat (limited to 'release/picobsd/mfs_tree')
-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 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 |