diff options
author | Simon Rettberg | 2019-02-12 14:35:49 +0100 |
---|---|---|
committer | Simon Rettberg | 2019-02-12 14:35:49 +0100 |
commit | 2d64b9d8f57f28456eb27c4aed2dde26201b6770 (patch) | |
tree | 62d1073b0d401408dd43e0d3731475c9829424a1 /inc/event.inc.php | |
parent | [serversetup-bwlp] Fix case of platform var (diff) | |
download | slx-admin-2d64b9d8f57f28456eb27c4aed2dde26201b6770.tar.gz slx-admin-2d64b9d8f57f28456eb27c4aed2dde26201b6770.tar.xz slx-admin-2d64b9d8f57f28456eb27c4aed2dde26201b6770.zip |
[serversetup-bwlp] Auto-import of old PXELinux config on bootup
Also minor improvements to UI and structuring
Diffstat (limited to 'inc/event.inc.php')
-rw-r--r-- | inc/event.inc.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/inc/event.inc.php b/inc/event.inc.php index b1ee3663..4e68ab6d 100644 --- a/inc/event.inc.php +++ b/inc/event.inc.php @@ -24,6 +24,17 @@ class Event Property::clearList('cron.key.status'); Property::clearList('cron.key.blocked'); + // Hooks + foreach (Hook::load('bootup') as $hook) { + // Isolate for local vars + $fun = function() use ($hook) { + include_once($hook->file); + }; + $fun(); + } + + // TODO: Modularize (hooks) + // Tasks: fire away $mountStatus = false; $mountId = Trigger::mount(); |