Skip to content
Permalink
Browse files

Re-enable Cockpit on RPi Zero

  • Loading branch information...
NEMS Linux
NEMS Linux committed Feb 23, 2019
1 parent b12ae65 commit d2ae3973acf5df3d4b6efa7d1450941f1ca95195
Showing with 2 additions and 2 deletions.
  1. +1 −1 config/index.php
  2. +1 −1 init.php
@@ -717,7 +717,7 @@ function sanitize($string) {
if (checkConfEnabled('monitorix') == true) $checked = 'CHECKED="CHECKED"'; else $checked = '';
echo '<label class="toggle text-right"><input ' . $checked . ' name="monitorix" type="checkbox" class="services reboot"><i></i>Monitorix</label>';
if (ver('nems') >= 1.4 && $platform->num != 0 && $platform->num != 1 ) { // not included on Pi 1 or Zero
if (ver('nems') >= 1.4) {
if (checkConfEnabled('cockpit') == true) $checked = 'CHECKED="CHECKED"'; else $checked = '';
echo '<label class="toggle text-right"><input ' . $checked . ' name="cockpit" type="checkbox" class="services reboot"><i></i>Cockpit</label>';
}
@@ -90,7 +90,7 @@ function resizeIframe(obj) {
echo '<p class="color-light">Current Build Script:<br /><em>' . $build_cur . '</em></p>';
} else {
echo '<h3 class="color-light" style="font-weight: bold;">Your NEMS server is not yet initialized.</h3>';
if (ver('nems') < 1.4 || $platform->num == 0 || $platform->num == 1) {
if (ver('nems') < 1.4) {
echo '<p class="color-light">SSH to your NEMS server (' . $ip . ') and run:<br /><em>sudo nems-init</em></p>';
} else {
echo '<p class="color-light">SSH to your NEMS server (' . $ip . ') or <a href="https://' . $self->host . ':9090/system/terminal">open a browser-based terminal session</a> and run:<br /><em>sudo nems-init</em></p>';

0 comments on commit d2ae397

Please sign in to comment.
You can’t perform that action at this time.