[DRBD-cvs] r1710 - branches/drbd-0.7/scripts
svn at svn.drbd.org
svn at svn.drbd.org
Thu Jan 13 15:31:20 CET 2005
Author: phil
Date: 2005-01-13 15:31:17 +0100 (Thu, 13 Jan 2005)
New Revision: 1710
Modified:
branches/drbd-0.7/scripts/drbd
Log:
Abort the init script in case one of the setup commands fails
Modified: branches/drbd-0.7/scripts/drbd
===================================================================
--- branches/drbd-0.7/scripts/drbd 2005-01-13 13:58:05 UTC (rev 1709)
+++ branches/drbd-0.7/scripts/drbd 2005-01-13 14:31:17 UTC (rev 1710)
@@ -71,7 +71,9 @@
else echo echo -n ".. ";
fi
IFS=$IFS_O
- $CMD
+ $CMD || {
+ echo -e "\ncmd $CMD failed!"; exit 20
+ }
IFS=$NEWLINE
done
echo -n "]"
More information about the drbd-cvs
mailing list