Skip to content

Commit 409bc1b

Browse files
committed
Fixup serial console settings that get applied to nanobsd. Fixes pfsense#2484
1 parent 3a819be commit 409bc1b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

etc/inc/pfsense-utils.inc

+3-1
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,7 @@ function setup_serial_port($when="save", $path="") {
956956
else
957957
$boot_config = "";
958958

959-
if($g['platform'] <> "cdrom") {
959+
if(($g['platform'] != "cdrom") && ($g['platform'] != "nanobsd")) {
960960
$boot_config_split = explode("\n", $boot_config);
961961
$fd = fopen($boot_config_file,"w");
962962
if($fd) {
@@ -973,6 +973,8 @@ function setup_serial_port($when="save", $path="") {
973973
}
974974
fclose($fd);
975975
}
976+
}
977+
if($g['platform'] != "cdrom") {
976978
/* serial console - write out /boot/loader.conf */
977979
$boot_config = file_get_contents($loader_conf_file);
978980
$boot_config_split = explode("\n", $boot_config);

0 commit comments

Comments
 (0)