Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
93242b9e
Commit
93242b9e
authored
Mar 30, 2012
by
Leigh B Stoller
Browse files
Minor bug fix.
parent
f9115df8
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils/localize_mfs.in
View file @
93242b9e
...
...
@@ -170,7 +170,7 @@ sub LocalizeBSD()
};
#
# Map from $
NODE
CONSOLE to config setting.
# Map from $
MFS
CONSOLE to config setting.
#
my
%consmap
=
(
"
sio
"
=>
"
com
",
...
...
@@ -178,8 +178,8 @@ sub LocalizeBSD()
"
vga
"
=>
"
vid
",
"
null
"
=>
"
null
"
);
if
(
!
exists
(
$consmap
{
$
NODE
CONSOLE
}))
{
fatal
("
Do not know what to do with console:
$
NODE
CONSOLE
");
if
(
!
exists
(
$consmap
{
$
MFS
CONSOLE
}))
{
fatal
("
Do not know what to do with console:
$
MFS
CONSOLE
");
}
#
...
...
@@ -236,7 +236,7 @@ sub LocalizeBSD()
ExecQuiet
("
echo '
$passhash
' |
$PW
-V
$mpoint
/etc usermod root -H 0
")
==
0
or
goto
bad
;
# Localize the console to use.
my
$consdev
=
$consmap
{
$
NODE
CONSOLE
}
.
"
console
";
my
$consdev
=
$consmap
{
$
MFS
CONSOLE
}
.
"
console
";
ExecQuiet
("
echo 'console=
\"
$consdev
\"
' >> loader.conf.orig
")
==
0
or
goto
bad
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment