summaryrefslogtreecommitdiffstats
path: root/src/usr
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2016-01-22 11:59:33 -0500
committerjim-p <jimp@pfsense.org>2016-01-22 11:59:33 -0500
commitbea2dd6d5fd711653565ec212d0dd62a44b7f043 (patch)
tree9c3897cf6da925fe4381374afc509f65ac3e798d /src/usr
parent6801de7527f2fbd056ce44bf5c356f2ff608d2c9 (diff)
downloadpfsense-bea2dd6d5fd711653565ec212d0dd62a44b7f043.zip
pfsense-bea2dd6d5fd711653565ec212d0dd62a44b7f043.tar.gz
Only the serial enable/disable and primary console selectors should be hidden for this test, the serial speed selector must still be available.
Diffstat (limited to 'src/usr')
-rw-r--r--src/usr/local/www/system_advanced_admin.php20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/usr/local/www/system_advanced_admin.php b/src/usr/local/www/system_advanced_admin.php
index 73f981f..8087224 100644
--- a/src/usr/local/www/system_advanced_admin.php
+++ b/src/usr/local/www/system_advanced_admin.php
@@ -508,10 +508,10 @@ $section->addInput(new Form_Input(
))->setHelp('Note: Leave this blank for the default of 22.');
-if (!$g['enableserial_force'] && ($g['platform'] == $g['product_name'] || $g['platform'] == "cdrom")) {
- $form->add($section);
- $section = new Form_Section('Serial Communications');
+$form->add($section);
+$section = new Form_Section('Serial Communications');
+if (!$g['enableserial_force'] && ($g['platform'] == $g['product_name'] || $g['platform'] == "cdrom")) {
$section->addInput(new Form_Checkbox(
'enableserial',
'Serial Terminal',
@@ -521,14 +521,16 @@ if (!$g['enableserial_force'] && ($g['platform'] == $g['product_name'] || $g['pl
'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.');
+}
- $section->addInput(new Form_Select(
- 'serialspeed',
- 'Serial Speed',
- $pconfig['serialspeed'],
- array_combine(array(115200, 57600, 38400, 19200, 14400, 9600), array(115200, 57600, 38400, 19200, 14400, 9600))
- ))->setHelp('Allows selection of different speeds for the serial console port.');
+$section->addInput(new Form_Select(
+ 'serialspeed',
+ 'Serial Speed',
+ $pconfig['serialspeed'],
+ array_combine(array(115200, 57600, 38400, 19200, 14400, 9600), array(115200, 57600, 38400, 19200, 14400, 9600))
+))->setHelp('Allows selection of different speeds for the serial console port.');
+if (!$g['enableserial_force'] && ($g['platform'] == $g['product_name'] || $g['platform'] == "cdrom")) {
$section->addInput(new Form_Select(
'primaryconsole',
'Primary Console',
OpenPOWER on IntegriCloud