summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_nanobsd.php
diff options
context:
space:
mode:
authorjim-p <jim@pingle.org>2010-04-23 12:19:36 -0400
committerjim-p <jim@pingle.org>2010-04-23 12:19:36 -0400
commit2b5f276f8766b7085d8b6ec54b21b6db7554a355 (patch)
treeacd730b4e78ed1f1f01fe082e601449f38675de3 /usr/local/www/diag_nanobsd.php
parent08fd5444a92c40b9c248493b8da517ffce0e5445 (diff)
downloadpfsense-2b5f276f8766b7085d8b6ec54b21b6db7554a355.zip
pfsense-2b5f276f8766b7085d8b6ec54b21b6db7554a355.tar.gz
Improve NanoBSD slice updating/changing a bit, add some error checking. Resolves #534.
Diffstat (limited to 'usr/local/www/diag_nanobsd.php')
-rwxr-xr-xusr/local/www/diag_nanobsd.php19
1 files changed, 5 insertions, 14 deletions
diff --git a/usr/local/www/diag_nanobsd.php b/usr/local/www/diag_nanobsd.php
index fee325e..3e9bed1 100755
--- a/usr/local/www/diag_nanobsd.php
+++ b/usr/local/www/diag_nanobsd.php
@@ -74,7 +74,7 @@ if($_POST['bootslice']) {
<p/>&nbsp;
</div>
EOF;
- nanobsd_set_boot_slice($_POST['bootslice']);
+ nanobsd_switch_boot_slice();
$savemsg = "The boot slice has been set to " . nanobsd_get_active_slice();
// Survey slice info
nanobsd_detect_slice_info();
@@ -133,23 +133,14 @@ if ($savemsg)
<td width="22%" valign="top" class="vncell">Bootup</td>
<td width="78%" class="vtable">
<form action="diag_nanobsd.php" method="post" name="iform">
- Bootup slice:
- <select name='bootslice'>
- <option value='<?php echo $BOOTFLASH; ?>'<?php if ($BOOTFLASH == $ACTIVE_SLICE) {?> selected<?php } ?>>
- <?php echo $BOOTFLASH; ?>
- </option>
- <option value='<?php echo $TOFLASH; ?>'<?php if ($TOFLASH == $ACTIVE_SLICE) {?> selected<?php } ?>>
- <?php echo $TOFLASH; ?>
- </option>
- </select>
+ Bootup slice is currently: <?php echo $ACTIVE_SLICE; ?>
+ <br/><br/>This will switch the bootup slice to the alternate slice.
<br/>
- This will set the bootup slice.
+ <input type='hidden' name='bootslice' value='switch'>
+ <input type='submit' value='Switch Slice'></form>
</td>
</tr>
<tr>
- <td valign="top" class="">&nbsp;</td><td><br/><input type='submit' value='Set bootup'></form></td>
- </tr>
- <tr>
<td colspan="2" valign="top" class="">&nbsp;</td>
</tr>
<tr>
OpenPOWER on IntegriCloud