diff options
author | Simon Rettberg | 2014-05-24 18:42:23 +0200 |
---|---|---|
committer | Simon Rettberg | 2014-05-24 18:42:23 +0200 |
commit | ee27ec0d2bc44fece8b438a4ea58ac956198d300 (patch) | |
tree | 29c7e34925d5525a60fcfca081725cd4a845e635 /modules/main.inc.php | |
parent | Stuff (WIP) (diff) | |
download | slx-admin-ee27ec0d2bc44fece8b438a4ea58ac956198d300.tar.gz slx-admin-ee27ec0d2bc44fece8b438a4ea58ac956198d300.tar.xz slx-admin-ee27ec0d2bc44fece8b438a4ea58ac956198d300.zip |
WIP
Diffstat (limited to 'modules/main.inc.php')
-rw-r--r-- | modules/main.inc.php | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/modules/main.inc.php b/modules/main.inc.php index 3b35ad53..ddbc37a4 100644 --- a/modules/main.inc.php +++ b/modules/main.inc.php @@ -17,15 +17,7 @@ class Page_Main extends Page return; } // Logged in here - $ipxe = true; - $file = CONFIG_IPXE_DIR . '/last-ip'; - if (file_exists($file)) { - $last = file_get_contents($file); - exec('/bin/ip a', $ips); - foreach ($ips as $ip) { - if (preg_match("#inet $last/\d+.*scope#", $ip)) $ipxe = false; - } - } + $ipxe = (Property::getServerIp() !== Property::getIPxeIp()); $sysconfig = !file_exists(CONFIG_HTTP_DIR . '/default/config.tgz'); $minilinux = !file_exists(CONFIG_HTTP_DIR . '/default/kernel') || !file_exists(CONFIG_HTTP_DIR . '/default/initramfs-stage31') || !file_exists(CONFIG_HTTP_DIR . '/default/stage32.sqfs'); Render::addTemplate('page-main', array('user' => User::getName(), 'ipxe' => $ipxe, 'sysconfig' => $sysconfig, 'minilinux' => $minilinux)); |