From: Sergio L. Pascual Date: Fri, 2 Jan 2015 01:28:52 +0000 (+0100) Subject: createdrives: delete drives if already exist. X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=df3634567227f6d8a7811fe9185cc2f5df6bf3b8;p=FUZIX.git createdrives: delete drives if already exist. --- diff --git a/Kernel/platform-z80pack/createdrives b/Kernel/platform-z80pack/createdrives index 7fc2b669..bf8a1312 100755 --- a/Kernel/platform-z80pack/createdrives +++ b/Kernel/platform-z80pack/createdrives @@ -38,6 +38,14 @@ if [ ! -e ${UTILDIR}/init ]; then exit 1 fi +if [ -e $DISK1 ]; then + rm $DISK1 +fi + +if [ -e $DISK2 ]; then + rm $DISK2 +fi + $MKFS $DISK1 8 390 if [ $? != 0 ]; then echo "$0: Error creating first disk"