public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb297af
)
createdrives: delete drives if already exist.
author
Sergio L. Pascual
<slp@sinrega.org>
Fri, 2 Jan 2015 01:28:52 +0000
(
02:28
+0100)
committer
Sergio L. Pascual
<slp@sinrega.org>
Fri, 2 Jan 2015 01:28:52 +0000
(
02:28
+0100)
Kernel/platform-z80pack/createdrives
patch
|
blob
|
history
diff --git
a/Kernel/platform-z80pack/createdrives
b/Kernel/platform-z80pack/createdrives
index
7fc2b66
..
bf8a131
100755
(executable)
--- 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"