summaryrefslogtreecommitdiffstats
path: root/modules-available/serversetup-bwlp-pxelinux/hooks/ipxe-update.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2019-02-15 15:55:10 +0100
committerSimon Rettberg2019-02-15 15:55:10 +0100
commitbc9aa8105db4742255265a35594fafc93269d59d (patch)
tree338dd9588519ed2b996c675a920160258c8762ba /modules-available/serversetup-bwlp-pxelinux/hooks/ipxe-update.inc.php
parent[dozmod] Add UI to create preset network rules (diff)
parent[serversetup-bwlp-ipxe] ipxe script: Don't load unused png (diff)
downloadslx-admin-bc9aa8105db4742255265a35594fafc93269d59d.tar.gz
slx-admin-bc9aa8105db4742255265a35594fafc93269d59d.tar.xz
slx-admin-bc9aa8105db4742255265a35594fafc93269d59d.zip
Merge branch 'ipxe'
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