[Fai-commit] r4138 - trunk/lib

Thomas Lange lange at alioth.debian.org
Fri Nov 3 16:55:36 CET 2006


Author: lange
Date: 2006-11-03 16:55:36 +0100 (Fri, 03 Nov 2006)
New Revision: 4138

Modified:
   trunk/lib/subroutines-linux
Log:
check exit status of get-config-dir


Modified: trunk/lib/subroutines-linux
===================================================================
--- trunk/lib/subroutines-linux	2006-11-03 15:54:10 UTC (rev 4137)
+++ trunk/lib/subroutines-linux	2006-11-03 15:55:36 UTC (rev 4138)
@@ -70,7 +70,10 @@
 	mkrw -s 100m $FAI
     fi
     define_fai_flags
-    get-config-dir
+    get-config-dir || {
+	echo "Problems accessing the config space."
+	die ""
+    }
     # now you have enough time to make changes to the config space
     if [ -n "$flag_wait" ]; then
 	echo "Sleeping. Now you may change the config space in $FAI."




More information about the Fai-commit mailing list