summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_advanced_admin.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-10-31 11:35:38 -0400
committerjim-p <jimp@pfsense.org>2011-10-31 11:35:38 -0400
commitc1becc31449ab147478fd05c8b139e00fddda729 (patch)
treed906c6782a6f2760a5fbe18f0316668bfce128da /usr/local/www/system_advanced_admin.php
parent6661dbcf48ba73aac141cebd5efae3eb06a063c4 (diff)
downloadpfsense-c1becc31449ab147478fd05c8b139e00fddda729.zip
pfsense-c1becc31449ab147478fd05c8b139e00fddda729.tar.gz
Add field to the GUI to select the serial console speed (May work as-is, needs more testing/feedback)
Diffstat (limited to 'usr/local/www/system_advanced_admin.php')
-rw-r--r--usr/local/www/system_advanced_admin.php23
1 files changed, 21 insertions, 2 deletions
diff --git a/usr/local/www/system_advanced_admin.php b/usr/local/www/system_advanced_admin.php
index 0538b9d..e7aaa40 100644
--- a/usr/local/www/system_advanced_admin.php
+++ b/usr/local/www/system_advanced_admin.php
@@ -61,6 +61,7 @@ $pconfig['nohttpreferercheck'] = isset($config['system']['webgui']['nohttprefere
$pconfig['noautocomplete'] = isset($config['system']['webgui']['noautocomplete']);
$pconfig['althostnames'] = $config['system']['webgui']['althostnames'];
$pconfig['enableserial'] = $config['system']['enableserial'];
+$pconfig['serialspeed'] = $config['system']['serialspeed'];
$pconfig['enablesshd'] = $config['system']['enablesshd'];
$pconfig['sshport'] = $config['system']['ssh']['port'];
$pconfig['sshdkeyonly'] = isset($config['system']['ssh']['sshdkeyonly']);
@@ -150,6 +151,11 @@ if ($_POST) {
else
unset($config['system']['enableserial']);
+ if (is_numeric($_POST['serialspeed']))
+ $config['system']['serialspeed'] = $_POST['serialspeed'];
+ else
+ unset($config['system']['serialspeed']);
+
if ($_POST['nodnsrebindcheck'] == "yes")
$config['system']['webgui']['nodnsrebindcheck'] = true;
else
@@ -487,12 +493,25 @@ function prot_change() {
<td width="22%" valign="top" class="vncell"><?=gettext("Serial Terminal"); ?></td>
<td width="78%" class="vtable">
<input name="enableserial" type="checkbox" id="enableserial" value="yes" <?php if (isset($pconfig['enableserial'])) echo "checked"; ?> />
- <strong><?=gettext("This will enable the first serial port with 9600/8/N/1"); ?></strong>
- <br>
+ <strong><?=gettext("Enables the first serial port with 9600/8/N/1 by default, or another speed selectable below."); ?></strong>
<span class="vexpl"><?=gettext("Note: This will redirect the console output and messages to the serial port. You can still access the console menu from the internal video card/keyboard. A <b>null modem</b> serial cable or adapter is required to use the serial console."); ?></span>
</td>
</tr>
<tr>
+ <td width="22%" valign="top" class="vncell"><?=gettext("Serial Speed")?></td>
+ <td width="78%" class="vtable">
+ <select name="serialspeed" id="serialspeed" class="formselect">
+ <option value="9600" <?php if ($pconfig['serialspeed'] == "9600") echo "selected";?>>9600</option>
+ <option value="14400" <?php if ($pconfig['serialspeed'] == "14400") echo "selected";?>>14400</option>
+ <option value="19200" <?php if ($pconfig['serialspeed'] == "19200") echo "selected";?>>19200</option>
+ <option value="38400" <?php if ($pconfig['serialspeed'] == "38400") echo "selected";?>>38400</option>
+ <option value="57600" <?php if ($pconfig['serialspeed'] == "57600") echo "selected";?>>57600</option>
+ <option value="115200" <?php if ($pconfig['serialspeed'] == "115200") echo "selected";?>>115200</option>
+ </select> bps
+ <br/><?=gettext("Allows selection of different speeds for the serial console port, if enabled above."); ?>
+ </td>
+ </tr>
+ <tr>
<td colspan="2" class="list" height="12">&nbsp;</td>
</tr>
<?php endif; ?>
OpenPOWER on IntegriCloud