diff options
author | jim-p <jimp@pfsense.org> | 2016-01-22 11:59:33 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2016-01-22 11:59:33 -0500 |
commit | bea2dd6d5fd711653565ec212d0dd62a44b7f043 (patch) | |
tree | 9c3897cf6da925fe4381374afc509f65ac3e798d /src/usr/local/www | |
parent | 6801de7527f2fbd056ce44bf5c356f2ff608d2c9 (diff) | |
download | pfsense-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/local/www')
-rw-r--r-- | src/usr/local/www/system_advanced_admin.php | 20 |
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', |