[Fai-commit] r4168 - trunk/bin
Thomas Lange
lange at alioth.debian.org
Sun Nov 26 16:58:43 CET 2006
Author: lange
Date: 2006-11-26 16:58:43 +0100 (Sun, 26 Nov 2006)
New Revision: 4168
Modified:
trunk/bin/make-fai-bootfloppy
Log:
print error if can't write to floppy device
Modified: trunk/bin/make-fai-bootfloppy
===================================================================
--- trunk/bin/make-fai-bootfloppy 2006-11-26 14:59:12 UTC (rev 4167)
+++ trunk/bin/make-fai-bootfloppy 2006-11-26 15:58:43 UTC (rev 4168)
@@ -27,7 +27,7 @@
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#*********************************************************************
-version="Version 2.8.3, 14-september-2006"
+version="Version 2.8.4, 26-november-2006"
set -e
timeout=15
@@ -342,7 +342,10 @@
mkfsopt=-F
else
# blank first sector of floopy
+ set +e
dd if=/dev/zero of=$floppydev bs=512 count=1 2>/dev/null
+ [ $? -ne 0 ] && die "Can't write to floppy device $floppydev."
+ set -e
fi
# pay attention: if -i option is too large, then too few inodes
More information about the Fai-commit
mailing list