diff options
author | jim-p <jimp@pfsense.org> | 2014-02-14 09:56:37 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2014-02-14 09:58:17 -0500 |
commit | 407fbf455bbd10144713343dc6e7950eac386fc2 (patch) | |
tree | 332643d72ce3595151817313c1c79497a422bd70 /usr/local/www | |
parent | dbfa041c1024edf6836058147714cca89267f8f0 (diff) | |
download | pfsense-407fbf455bbd10144713343dc6e7950eac386fc2.zip pfsense-407fbf455bbd10144713343dc6e7950eac386fc2.tar.gz |
Add a mechanism by which the serial port can be forced on always regardless of the config setting. (useful for nano+vga setups)
Diffstat (limited to 'usr/local/www')
-rw-r--r-- | usr/local/www/system_advanced_admin.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/system_advanced_admin.php b/usr/local/www/system_advanced_admin.php index ffeac67..01e64f0 100644 --- a/usr/local/www/system_advanced_admin.php +++ b/usr/local/www/system_advanced_admin.php @@ -147,7 +147,7 @@ if ($_POST) { else unset($config['system']['webgui']['noantilockout']); - if ($_POST['enableserial'] == "yes") + if ($_POST['enableserial'] == "yes" || $g['enableserial_force']) $config['system']['enableserial'] = true; else unset($config['system']['enableserial']); @@ -525,7 +525,7 @@ function prot_change() { <tr> <td colspan="2" valign="top" class="listtopic"><?=gettext("Serial Communications"); ?></td> </tr> - <?php if($g['platform'] == "pfSense" || $g['platform'] == "cdrom"): ?> + <?php if (!$g['enableserial_force'] && ($g['platform'] == "pfSense" || $g['platform'] == "cdrom" || file_exists("/etc/nano_use_vga.txt"))): ?> <tr> <td width="22%" valign="top" class="vncell"><?=gettext("Serial Terminal"); ?></td> <td width="78%" class="vtable"> |