Tips and tricks

From FAIWiki
Revision as of 09:44, 17 August 2005 by Jan (talk | contribs) (additional FAI soubroutines)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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: for class in ${classes} do

 [ -r ${FAI}/hooks/subroutines.${class} ] && \
 { echo "Reading subroutines.${class}." ; . ${FAI}/hooks/subroutines.${class} ; }

done return 0