summaryrefslogtreecommitdiffstats
path: root/usr/local/www/widgets/widgets/system_information.widget.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-11-12 15:41:36 -0500
committerjim-p <jimp@pfsense.org>2012-11-12 15:41:36 -0500
commit7b2290139d7a52e2a77b76dcae6a524c1d959ecd (patch)
tree5c965a1636468e724c365043526fdebba7e4969e /usr/local/www/widgets/widgets/system_information.widget.php
parent1bceebd0ea4feb40cd9a9f0179cd093734b26e7e (diff)
downloadpfsense-7b2290139d7a52e2a77b76dcae6a524c1d959ecd.zip
pfsense-7b2290139d7a52e2a77b76dcae6a524c1d959ecd.tar.gz
Add button to switch between read/write and read-only on Diag > NanoBSD; Add setting to keep the media read/write at all times; Add indication of ro/rw status on Dashboard.
Diffstat (limited to 'usr/local/www/widgets/widgets/system_information.widget.php')
-rw-r--r--usr/local/www/widgets/widgets/system_information.widget.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/widgets/widgets/system_information.widget.php b/usr/local/www/widgets/widgets/system_information.widget.php
index 2a7055d..82f3415 100644
--- a/usr/local/www/widgets/widgets/system_information.widget.php
+++ b/usr/local/www/widgets/widgets/system_information.widget.php
@@ -120,11 +120,12 @@ $curcfg = $config['system']['firmware'];
global $GLABEL_SLICE, $UFS_ID, $OLD_UFS_ID, $BOOTFLASH;
global $BOOT_DEVICE, $REAL_BOOT_DEVICE, $BOOT_DRIVE, $ACTIVE_SLICE;
nanobsd_detect_slice_info();
+ $rw = is_writable("/") ? "(rw)" : "(ro)";
?>
<tr>
<td width="25%" class="vncellt">NanoBSD Boot Slice</td>
<td width="75%" class="listr">
- <?=htmlspecialchars(nanobsd_friendly_slice_name($BOOT_DEVICE));?> / <?=htmlspecialchars($BOOTFLASH);?>
+ <?=htmlspecialchars(nanobsd_friendly_slice_name($BOOT_DEVICE));?> / <?=htmlspecialchars($BOOTFLASH);?> <?php echo $rw; ?>
<?php if ($BOOTFLASH != $ACTIVE_SLICE): ?>
<br/><br/>Next Boot:<br/>
<?=htmlspecialchars(nanobsd_friendly_slice_name($GLABEL_SLICE));?> / <?=htmlspecialchars($ACTIVE_SLICE);?>
OpenPOWER on IntegriCloud