diff options
author | jim-p <jimp@pfsense.org> | 2011-10-31 15:02:07 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-10-31 15:02:07 -0400 |
commit | 9d99eb95c95524b018c2754132c66451bf7b19ac (patch) | |
tree | 9f58db86810f5e843534e748ce77430e5a6f396d /etc | |
parent | c1becc31449ab147478fd05c8b139e00fddda729 (diff) | |
download | pfsense-9d99eb95c95524b018c2754132c66451bf7b19ac.zip pfsense-9d99eb95c95524b018c2754132c66451bf7b19ac.tar.gz |
Allow the serial speed adjustment to work for nanobsd as well.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 5 |
1 files changed, 4 insertions, 1 deletions
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"); } |