summaryrefslogtreecommitdiffstats
path: root/modules-available
diff options
context:
space:
mode:
authorSimon Rettberg2019-01-17 14:41:44 +0100
committerSimon Rettberg2019-01-17 14:41:44 +0100
commit07b7dcd4d08be00541dcbd4a92a02f267a0b162c (patch)
tree19ed8195313ff5af353c256350c03b0e01d16f6e /modules-available
parent[serversetup-bwlp] Respect overriden default entry for location menu (diff)
downloadslx-admin-07b7dcd4d08be00541dcbd4a92a02f267a0b162c.tar.gz
slx-admin-07b7dcd4d08be00541dcbd4a92a02f267a0b162c.tar.xz
slx-admin-07b7dcd4d08be00541dcbd4a92a02f267a0b162c.zip
[serversetup-bwlp] Make ipxe trigger a hook for modularity
Diffstat (limited to 'modules-available')
-rw-r--r--modules-available/serversetup-bwlp/hooks/ipxe-update.inc.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules-available/serversetup-bwlp/hooks/ipxe-update.inc.php b/modules-available/serversetup-bwlp/hooks/ipxe-update.inc.php
new file mode 100644
index 00000000..166e80a8
--- /dev/null
+++ b/modules-available/serversetup-bwlp/hooks/ipxe-update.inc.php
@@ -0,0 +1,10 @@
+<?php
+
+$data = [
+ 'ipaddress' => Property::getServerIp()
+];
+$task = Taskmanager::submit('CompileIPxeNew', $data);
+if (!isset($task['id']))
+return false;
+Property::set('ipxe-task-id', $task['id'], 15);
+return $task['id']; \ No newline at end of file