diff options
Diffstat (limited to 'modules/main.inc.php')
| -rw-r--r-- | modules/main.inc.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/main.inc.php b/modules/main.inc.php index 31aef55e..24f519c6 100644 --- a/modules/main.inc.php +++ b/modules/main.inc.php @@ -20,6 +20,8 @@ function render_module() if (preg_match("#inet $last/\d+.*scope#", $ip)) $ipxe = false; } } - Render::addTemplate('page-main', array('user' => User::getName(), 'ipxe' => $ipxe)); + $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)); } |
