[arch-dev-public] [PATCH] Implement a hook-system that allows to add custom code to the initscripts at certain places

Thomas Bächler thomas at archlinux.org
Tue Aug 25 07:10:12 EDT 2009


Thomas Bächler schrieb:
> A function add_hook can be called from functions.d to register a hook 
> function. The existing hooks are based on suggestions from Michael 
> Towers (larch) and on the implementation of initscripts-extras-fbsplash 
> which currently uses the strings passed to stat_busy and stat_done for 
> this. More hooks can be added if requested.

Forgot to mention this in the commit and the first mail: the hook 
function names should be prefixed by something to make them unique, for 
example:

add_hook premount larch_premount

If larch would decide to add a "premount" hook.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://www.archlinux.org/pipermail/arch-dev-public/attachments/20090825/f0d01d97/attachment.pgp>


More information about the arch-dev-public mailing list