diff options
author | Simon Rettberg | 2019-02-15 15:55:10 +0100 |
---|---|---|
committer | Simon Rettberg | 2019-02-15 15:55:10 +0100 |
commit | bc9aa8105db4742255265a35594fafc93269d59d (patch) | |
tree | 338dd9588519ed2b996c675a920160258c8762ba /modules-available/serversetup-bwlp-pxelinux/hooks/main-warning.inc.php | |
parent | [dozmod] Add UI to create preset network rules (diff) | |
parent | [serversetup-bwlp-ipxe] ipxe script: Don't load unused png (diff) | |
download | slx-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/main-warning.inc.php')
-rw-r--r-- | modules-available/serversetup-bwlp-pxelinux/hooks/main-warning.inc.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules-available/serversetup-bwlp-pxelinux/hooks/main-warning.inc.php b/modules-available/serversetup-bwlp-pxelinux/hooks/main-warning.inc.php new file mode 100644 index 00000000..a2eba6ff --- /dev/null +++ b/modules-available/serversetup-bwlp-pxelinux/hooks/main-warning.inc.php @@ -0,0 +1,6 @@ +<?php + +if (!preg_match('/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/', Property::getServerIp())) { + Message::addError('serversetup.no-ip-addr-set', true); + $needSetup = true; +} |