Tips and tricks

From FAIWiki
Revision as of 10:55, 17 August 2005 by Jan (talk | contribs)
Jump to: navigation, search

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

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

#! /bin/bash
for class in ${classes}
  [ -r ${FAI}/hooks/subroutines.${class} ] && \
  { echo "Reading subroutines.${class}." ; . ${FAI}/hooks/subroutines.${class} ; }
return 0