Commit 93242b9e authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Minor bug fix.

parent f9115df8
...@@ -170,7 +170,7 @@ sub LocalizeBSD() ...@@ -170,7 +170,7 @@ sub LocalizeBSD()
}; };
# #
# Map from $NODECONSOLE to config setting. # Map from $MFSCONSOLE to config setting.
# #
my %consmap = ( my %consmap = (
"sio" => "com", "sio" => "com",
...@@ -178,8 +178,8 @@ sub LocalizeBSD() ...@@ -178,8 +178,8 @@ sub LocalizeBSD()
"vga" => "vid", "vga" => "vid",
"null" => "null" "null" => "null"
); );
if (!exists($consmap{$NODECONSOLE})) { if (!exists($consmap{$MFSCONSOLE})) {
fatal("Do not know what to do with console: $NODECONSOLE"); fatal("Do not know what to do with console: $MFSCONSOLE");
} }
# #
...@@ -236,7 +236,7 @@ sub LocalizeBSD() ...@@ -236,7 +236,7 @@ sub LocalizeBSD()
ExecQuiet("echo '$passhash' | $PW -V $mpoint/etc usermod root -H 0") ExecQuiet("echo '$passhash' | $PW -V $mpoint/etc usermod root -H 0")
== 0 or goto bad; == 0 or goto bad;
# Localize the console to use. # Localize the console to use.
my $consdev = $consmap{$NODECONSOLE} . "console"; my $consdev = $consmap{$MFSCONSOLE} . "console";
ExecQuiet("echo 'console=\"$consdev\"' >> loader.conf.orig") ExecQuiet("echo 'console=\"$consdev\"' >> loader.conf.orig")
== 0 or goto bad; == 0 or goto bad;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment