[Fai-commit] r5542 - trunk/examples/simple/class

Michael Tautschnig mt at alioth.debian.org
Fri Oct 16 13:19:45 UTC 2009


Author: mt
Date: 2009-10-16 13:19:45 +0000 (Fri, 16 Oct 2009)
New Revision: 5542

Modified:
   trunk/examples/simple/class/20-hwdetect.source
Log:
$action is not always defined, use $do_init_tasks instead


Modified: trunk/examples/simple/class/20-hwdetect.source
===================================================================
--- trunk/examples/simple/class/20-hwdetect.source	2009-10-16 12:36:33 UTC (rev 5541)
+++ trunk/examples/simple/class/20-hwdetect.source	2009-10-16 13:19:45 UTC (rev 5542)
@@ -5,7 +5,7 @@
 # NOTE: Files named *.source will be evaluated, but their output ignored. Instead
 # the contents of $newclasses will be added to the list of defined classes.
 
-[ "$action" = "install" ] || return 0 # Do only execute when doing install
+[ $do_init_tasks -eq 1 ] || return 0 # Do only execute when doing install
 
 echo 0 > /proc/sys/kernel/printk
 




More information about the Fai-commit mailing list