[Fai-commit] r4472 - trunk/bin
lange at alioth.debian.org
lange at alioth.debian.org
Sat Aug 4 20:55:58 UTC 2007
Author: lange
Date: 2007-08-04 20:55:58 +0000 (Sat, 04 Aug 2007)
New Revision: 4472
Modified:
trunk/bin/fai-cd
Log:
check if $usbdir already exists
Modified: trunk/bin/fai-cd
===================================================================
--- trunk/bin/fai-cd 2007-08-04 20:30:55 UTC (rev 4471)
+++ trunk/bin/fai-cd 2007-08-04 20:55:58 UTC (rev 4472)
@@ -170,6 +170,7 @@
if [ $makeusb -eq 1 ]; then
# TODO: If usbdir is a device (matches /dev/) mount it
+ [ -d $usbdir ] || die 17 "$usbdir does not exist."
echo "Writing FAI data to USB device $usbdir"
cp -a $tmp/live $usbdir 2>/dev/null || true
fi
More information about the Fai-commit
mailing list