summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr/local/www/widgets/widgets/system_information.widget.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/usr/local/www/widgets/widgets/system_information.widget.php b/usr/local/www/widgets/widgets/system_information.widget.php
index 42576ff..033b6b6 100644
--- a/usr/local/www/widgets/widgets/system_information.widget.php
+++ b/usr/local/www/widgets/widgets/system_information.widget.php
@@ -100,6 +100,16 @@ $curcfg = $config['system']['firmware'];
<td width="75%" class="listr"><?=htmlspecialchars($g['platform']);?></td>
</tr>
<?php endif; ?>
+ <?php if ($g['platform'] == "nanobsd"): ?>
+ <?
+ $BOOT_DEVICE=trim(`/sbin/mount | /usr/bin/grep pfsense | /usr/bin/cut -d'/' -f4 | /usr/bin/cut -d' ' -f1`);
+ $REAL_BOOT_DEVICE=trim(`/sbin/glabel list | /usr/bin/grep -B2 ufs/{$BOOT_DEVICE} | /usr/bin/head -n 1 | /usr/bin/cut -f3 -d' '`);
+ ?>
+ <tr>
+ <td width="25%" class="vncellt">NanoBSD Boot Slice</td>
+ <td width="75%" class="listr"><?=htmlspecialchars($BOOT_DEVICE);?> / <?=htmlspecialchars($REAL_BOOT_DEVICE);?></td>
+ </tr>
+ <?php endif; ?>
<tr>
<td width="25%" class="vncellt">CPU Type</td>
<td width="75%" class="listr">
OpenPOWER on IntegriCloud