summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorjim-p <jim@pingle.org>2009-09-05 19:03:29 -0400
committerjim-p <jim@pingle.org>2009-09-05 19:03:29 -0400
commita91333d3a73a2c9a060eecb33a55b1eb4ec89615 (patch)
tree36d720485aae6cf9dcb4e5d282ddf10806764a8f /usr/local
parentdec5cb8537a019f5bf1b810f32d5cb047db2b3f4 (diff)
downloadpfsense-a91333d3a73a2c9a060eecb33a55b1eb4ec89615.zip
pfsense-a91333d3a73a2c9a060eecb33a55b1eb4ec89615.tar.gz
Add a line on sys info widget for NanoBSD boot slice if the platform is nanobsd
Diffstat (limited to 'usr/local')
-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