Add an optional cfgFunc to the init function which is called after the oml internal processing but before the initialisation process of OML.