Project

General

Profile

« Previous | Next » 

Revision 407fbf45

Added by Jim Pingle over 11 years ago

Add a mechanism by which the serial port can be forced on always regardless of the config setting. (useful for nano+vga setups)

View differences:

usr/local/www/system_advanced_admin.php
147 147
		else
148 148
			unset($config['system']['webgui']['noantilockout']);
149 149

  
150
		if ($_POST['enableserial'] == "yes")
150
		if ($_POST['enableserial'] == "yes" || $g['enableserial_force'])
151 151
			$config['system']['enableserial'] = true;
152 152
		else
153 153
			unset($config['system']['enableserial']);
......
525 525
							<tr>
526 526
								<td colspan="2" valign="top" class="listtopic"><?=gettext("Serial Communications"); ?></td>
527 527
							</tr>
528
							<?php if($g['platform'] == "pfSense" || $g['platform'] == "cdrom"): ?>
528
							<?php if (!$g['enableserial_force'] && ($g['platform'] == "pfSense" || $g['platform'] == "cdrom" || file_exists("/etc/nano_use_vga.txt"))): ?>
529 529
							<tr>
530 530
								<td width="22%" valign="top" class="vncell"><?=gettext("Serial Terminal"); ?></td>
531 531
								<td width="78%" class="vtable">

Also available in: Unified diff