Browse Source

Display os + kernel info on system > basic tab

pull/1183/head
billz 6 months ago
parent
commit
affc0396f1
  1. 4
      includes/system.php
  2. 6
      templates/system/basic.php

4
includes/system.php

@ -159,6 +159,8 @@ function DisplaySystem()
$hostname = $system->hostname();
$uptime = $system->uptime();
$cores = $system->processorCount();
$os = $system->operatingSystem();
$kernel = $system->kernelVersion();
// mem used
$memused = $system->usedMemory();
@ -215,6 +217,8 @@ function DisplaySystem()
"hostname",
"uptime",
"cores",
"os",
"kernel",
"memused",
"memused_status",
"memused_led",

6
templates/system/basic.php

@ -16,6 +16,12 @@ include('includes/sysstats.php');
<div class="row mb-1">
<div class="info-item col-xs-3"><?php echo _("Pi Revision"); ?></div><div class="info-value col-xs-3"><?php echo htmlspecialchars(RPiVersion(), ENT_QUOTES); ?></div>
</div>
<div class="row mb-1">
<div class="info-item col-xs-3"><?php echo _("OS"); ?></div><div class="info-value col-xs-3"><?php echo htmlspecialchars($os, ENT_QUOTES); ?></div>
</div>
<div class="row mb-1">
<div class="info-item col-xs-3"><?php echo _("Kernel"); ?></div><div class="info-value col-xs-3"><?php echo htmlspecialchars($kernel, ENT_QUOTES); ?></div>
</div>
<div class="row mb-1">
<div class="info-item col-xs-3"><?php echo _("Uptime"); ?></div><div class="info-value col-xs-3"><?php echo htmlspecialchars($uptime, ENT_QUOTES); ?></div>
</div>

Loading…
Cancel
Save