summaryrefslogtreecommitdiffstats
path: root/modules-available/serversetup-bwlp-pxelinux/hooks/ipxe-update.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2019-02-12 14:55:12 +0100
committerSimon Rettberg2019-02-12 14:55:12 +0100
commitc2a6dfb649107ce3ad64162e2bb2c3c7275650fb (patch)
tree5a58f34c9c2563bb9baebcf7a36afe3e1d08a120 /modules-available/serversetup-bwlp-pxelinux/hooks/ipxe-update.inc.php
parent[serversetup-bwlp] Auto-import of old PXELinux config on bootup (diff)
downloadslx-admin-c2a6dfb649107ce3ad64162e2bb2c3c7275650fb.tar.gz
slx-admin-c2a6dfb649107ce3ad64162e2bb2c3c7275650fb.tar.xz
slx-admin-c2a6dfb649107ce3ad64162e2bb2c3c7275650fb.zip
[serversetup*] PXELinux and iPXE side-by-side
Diffstat (limited to 'modules-available/serversetup-bwlp-pxelinux/hooks/ipxe-update.inc.php')
-rw-r--r--modules-available/serversetup-bwlp-pxelinux/hooks/ipxe-update.inc.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules-available/serversetup-bwlp-pxelinux/hooks/ipxe-update.inc.php b/modules-available/serversetup-bwlp-pxelinux/hooks/ipxe-update.inc.php
new file mode 100644
index 00000000..baa7a1bf
--- /dev/null
+++ b/modules-available/serversetup-bwlp-pxelinux/hooks/ipxe-update.inc.php
@@ -0,0 +1,9 @@
+<?php
+
+$data = Property::getBootMenu();
+$data['ipaddress'] = Property::getServerIp();
+$task = Taskmanager::submit('CompileIPxeLegacy', $data);
+if (!isset($task['id']))
+ return false;
+Property::set('ipxe-task-id', $task['id'], 15);
+return $task['id']; \ No newline at end of file