[Fai-commit] r3291 - trunk/bin
fai-repository at svn.debian.org
fai-repository at svn.debian.org
Sun Mar 19 18:25:03 UTC 2006
Author: lange
Date: 2006-03-19 18:25:02 +0000 (Sun, 19 Mar 2006)
New Revision: 3291
Modified:
trunk/bin/fai
Log:
exit script if no parameters are given and no run from nfsroot
Modified: trunk/bin/fai
===================================================================
--- trunk/bin/fai 2006-03-19 18:15:35 UTC (rev 3290)
+++ trunk/bin/fai 2006-03-19 18:25:02 UTC (rev 3291)
@@ -241,6 +241,12 @@
exit 1
fi
+# exit if we do not run from nfsroot and no parameter is given
+if [ -f /.THIS_IS_THE_FAI_NFSROOT -a "X$1" = "X" ]; then
+ echo "Please give more parameters if not run from the nfsroot."
+ exit 2
+fi
+
fai_init
lpipe=$LOGDIR/logfifo
More information about the Fai-commit
mailing list