Difference between revisions of "Tips and tricks"

From FAIWiki
Jump to: navigation, search
Line 3: Line 3:
 
To enable class specific soubroutines, create a hook 'defvar.DEFAULT.source' with following content:
 
To enable class specific soubroutines, create a hook 'defvar.DEFAULT.source' with following content:
  
 +
<math>
 
#! /bin/bash
 
#! /bin/bash
 
for class in ${classes}
 
for class in ${classes}
Line 9: Line 10:
 
   { echo "Reading subroutines.${class}." ; . ${FAI}/hooks/subroutines.${class} ; }
 
   { echo "Reading subroutines.${class}." ; . ${FAI}/hooks/subroutines.${class} ; }
 
done
 
done
return 0
+
return 0</math>

Revision as of 10:49, 17 August 2005

If the pre-defined FAI soubroutines don't fit or you need additional soubroutines, place a file called 'soubroutines' in your FAI tree/hooks and it will be sourced by any installation.

To enable class specific soubroutines, create a hook 'defvar.DEFAULT.source' with following content:

Failed to parse (lexing error): #! /bin/bash for class in ${classes} do [ -r ${FAI}/hooks/subroutines.${class} ] && \ { echo "Reading subroutines.${class}." ; . ${FAI}/hooks/subroutines.${class} ; } done return 0