Project

General

Profile

« Previous | Next » 

Revision c5f9fb72

Added by Renato Botelho about 11 years ago

Make proper checks to check if we should or not enable serial console

View differences:

etc/inc/pfsense-utils.inc
975 975
	$ttys = file_get_contents("/etc/ttys");
976 976
	$ttys_split = explode("\n", $ttys);
977 977
	$fd = fopen("/etc/ttys", "w");
978
	$on_off = ((isset($config['system']['enableserial']) || $g['enableserial_force']) ? 'on' : 'off');
978

  
979
	if (!isset($g['enableserial_force']) &&
980
	    !isset($config['system']['enableserial']) &&
981
	    ($g['platform'] == "pfSense" || $g['platform'] == "cdrom" || file_exists("/etc/nano_use_vga.txt")))
982
		$on_off = 'off';
983
	else
984
		$on_off = 'on';
985

  
979 986
	if (isset($config['system']['disableconsolemenu'])) {
980 987
		$console_type = 'Pc';
981 988
		$serial_type = 'std.' . $serialspeed;

Also available in: Unified diff