diff options
author | jim-p <jim@pingle.org> | 2010-04-23 12:19:36 -0400 |
---|---|---|
committer | jim-p <jim@pingle.org> | 2010-04-23 12:19:36 -0400 |
commit | 2b5f276f8766b7085d8b6ec54b21b6db7554a355 (patch) | |
tree | acd730b4e78ed1f1f01fe082e601449f38675de3 /usr/local/www/diag_nanobsd.php | |
parent | 08fd5444a92c40b9c248493b8da517ffce0e5445 (diff) | |
download | pfsense-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-x | usr/local/www/diag_nanobsd.php | 19 |
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/> </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=""> </td><td><br/><input type='submit' value='Set bootup'></form></td> - </tr> - <tr> <td colspan="2" valign="top" class=""> </td> </tr> <tr> |