From 9d99eb95c95524b018c2754132c66451bf7b19ac Mon Sep 17 00:00:00 2001 From: jim-p Date: Mon, 31 Oct 2011 15:02:07 -0400 Subject: Allow the serial speed adjustment to work for nanobsd as well. --- etc/inc/pfsense-utils.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'etc') diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index f51ef58..5203d68 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -967,12 +967,15 @@ function setup_serial_port() { && (stripos($bcs, "boot_serial") === false)) $new_boot_config[] = $bcs; + $serialspeed = (is_numeric($config['system']['serialspeed'])) ? $config['system']['serialspeed'] : "9600"; if(isset($config['system']['enableserial'])) { - $serialspeed = (is_numeric($config['system']['serialspeed'])) ? $config['system']['serialspeed'] : "9600"; $new_boot_config[] = 'boot_multicons="YES"'; $new_boot_config[] = 'boot_serial="YES"'; $new_boot_config[] = 'comconsole_speed="' . $serialspeed . '"'; $new_boot_config[] = 'console="comconsole,vidconsole"'; + } elseif ($g['platform'] == "nanobsd") { + $new_boot_config[] = 'comconsole_speed="' . $serialspeed . '"'; + $new_boot_config[] = 'console="comconsole"'; } file_put_contents("/boot/loader.conf", implode("\n", $new_boot_config) . "\n"); } -- cgit v1.1