Revision bea2dd6d
Added by Jim Pingle over 9 years ago
src/usr/local/www/system_advanced_admin.php | ||
---|---|---|
508 | 508 |
))->setHelp('Note: Leave this blank for the default of 22.'); |
509 | 509 |
|
510 | 510 |
|
511 |
if (!$g['enableserial_force'] && ($g['platform'] == $g['product_name'] || $g['platform'] == "cdrom")) { |
|
512 |
$form->add($section); |
|
513 |
$section = new Form_Section('Serial Communications'); |
|
511 |
$form->add($section); |
|
512 |
$section = new Form_Section('Serial Communications'); |
|
514 | 513 |
|
514 |
if (!$g['enableserial_force'] && ($g['platform'] == $g['product_name'] || $g['platform'] == "cdrom")) { |
|
515 | 515 |
$section->addInput(new Form_Checkbox( |
516 | 516 |
'enableserial', |
517 | 517 |
'Serial Terminal', |
... | ... | |
521 | 521 |
'the serial port. You can still access the console menu from the internal video '. |
522 | 522 |
'card/keyboard. A <b>null modem</b> serial cable or adapter is required to use the '. |
523 | 523 |
'serial console.'); |
524 |
} |
|
524 | 525 |
|
525 |
$section->addInput(new Form_Select(
|
|
526 |
'serialspeed',
|
|
527 |
'Serial Speed',
|
|
528 |
$pconfig['serialspeed'],
|
|
529 |
array_combine(array(115200, 57600, 38400, 19200, 14400, 9600), array(115200, 57600, 38400, 19200, 14400, 9600))
|
|
530 |
))->setHelp('Allows selection of different speeds for the serial console port.');
|
|
526 |
$section->addInput(new Form_Select( |
|
527 |
'serialspeed', |
|
528 |
'Serial Speed', |
|
529 |
$pconfig['serialspeed'], |
|
530 |
array_combine(array(115200, 57600, 38400, 19200, 14400, 9600), array(115200, 57600, 38400, 19200, 14400, 9600)) |
|
531 |
))->setHelp('Allows selection of different speeds for the serial console port.'); |
|
531 | 532 |
|
533 |
if (!$g['enableserial_force'] && ($g['platform'] == $g['product_name'] || $g['platform'] == "cdrom")) { |
|
532 | 534 |
$section->addInput(new Form_Select( |
533 | 535 |
'primaryconsole', |
534 | 536 |
'Primary Console', |
Also available in: Unified diff
Only the serial enable/disable and primary console selectors should be hidden for this test, the serial speed selector must still be available.