summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_advanced_admin.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2014-02-14 09:56:37 -0500
committerjim-p <jimp@pfsense.org>2014-02-14 09:58:17 -0500
commit407fbf455bbd10144713343dc6e7950eac386fc2 (patch)
tree332643d72ce3595151817313c1c79497a422bd70 /usr/local/www/system_advanced_admin.php
parentdbfa041c1024edf6836058147714cca89267f8f0 (diff)
downloadpfsense-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/system_advanced_admin.php')
-rw-r--r--usr/local/www/system_advanced_admin.php4
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">
OpenPOWER on IntegriCloud