From hakchi
Revision as of 17:08, 30 May 2018 by DanTheMan827 (talk | contribs)
Jump to: navigation, search

The preinit.d folder contains script files that are concatenated into a single file which is then executed

There are two types of files in this folder, both are included at different times

Naming convention

Every file must start with either p or b followed by four alphanumeric characters, they are included alphabetically, so b0000_defines would run first followed by b0010_functions

b files

These files should only contain function or variable definitions and should not contain code that executes.

They will be included every time script_init is called which includes the preinit boot phase and any time /bin/hakchi is run.

p files

These files can contain any kind of script and will be run only during the preinit boot phase.