[Fai-commit] r6669 - trunk/man

Thomas Lange lange at alioth.debian.org
Tue Oct 4 15:00:36 UTC 2011


Author: lange
Date: 2011-10-04 15:00:36 +0000 (Tue, 04 Oct 2011)
New Revision: 6669

Modified:
   trunk/man/fai-class.1
Log:
explain use of hclasses


Modified: trunk/man/fai-class.1
===================================================================
--- trunk/man/fai-class.1	2011-10-04 14:59:49 UTC (rev 6668)
+++ trunk/man/fai-class.1	2011-10-04 15:00:36 UTC (rev 6669)
@@ -11,7 +11,7 @@
 .\" .br        insert line break
 .\" .sp <n>    insert n+1 empty lines
 .\" for manpage-specific macros, see man(7)
-.TH "fai-class" "1" "23 September 2009" "FAI 3.3" ""
+.TH "fai-class" "1" "4 October 2011" "FAI 4" ""
 .SH "NAME"
 fai\-class \- define classes using files and scripts.
 .SH "SYNOPSIS"
@@ -82,10 +82,13 @@
 
    # fai\-class /fai/class /tmp/fai/FAI_CLASSES
 
-Then a list of all classes is defined in a shell script using
-the following command:
+Then the list of all classes is assigned to the variable classes. The
+associative array variable hclasses contains a hash with every class
+name as index.
 
     classes=`cat /tmp/fai/FAI_CLASSES`
+    declare -A hclasses
+    for c in $classes; do hclasses[$c]=1;done
 
 .SH "EXAMPLES FOR SCRIPTS"
 .ta 40n




More information about the Fai-commit mailing list