From 78828434f7d21d90ed83fa35f15f8a8efb92ee7b Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sat, 4 Jun 2011 22:25:35 +0000 Subject: inst/bootsetup: delete files before copying --- rc/bin/inst/bootsetup | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rc/bin/inst/bootsetup b/rc/bin/inst/bootsetup index 8a4639a84..cbd472df7 100755 --- a/rc/bin/inst/bootsetup +++ b/rc/bin/inst/bootsetup @@ -49,10 +49,11 @@ case go disk/format -r 2 -d -b /386/pbs $fat mount -c /srv/dos /n/9fat $fat } - logprog cp /tmp/plan9.ini /n/9fat/plan9.ini + logprog rm -f /n/9fat/^(9bootfat plan9.ini 9pcf 9pccpuf) logprog cp /n/newfs/386/9bootfat /n/9fat/9bootfat # make file continous on disk logprog chmod +al /n/9fat/9bootfat + logprog cp /tmp/plan9.ini /n/9fat/plan9.ini logprog cp /n/newfs/386/9pcf /n/9fat/9pcf logprog cp /n/newfs/386/9pccpuf /n/9fat/9pccpuf -- cgit v1.2.3