Commit 7b8b75ff authored by Leigh B Stoller's avatar Leigh B Stoller

Add silly -i option to uncomment the kern.ipc.nmb* options; seems

that we need this a lot, for the IGB interfaces.
parent e91b39ae
......@@ -34,8 +34,9 @@ sub usage()
print("Usage: localize_mfs [-d] [-c vga|sio|sio2|sio3|sio4|null] <path>\n");
exit(-1);
}
my $optlist = "dc:";
my $optlist = "dc:i";
my $debug = 0;
my $igbcruft= 0;
#
# Configure variables
......@@ -103,6 +104,9 @@ if (! getopts($optlist, \%options)) {
if (defined($options{"d"})) {
$debug = 1;
}
if (defined($options{"i"})) {
$igbcruft = 1;
}
if (defined($options{"c"})) {
$MFSCONSOLE = $options{"c"};
}
......@@ -262,6 +266,14 @@ sub LocalizeBSD()
ExecQuiet("echo '$passhash' | $PW -V $mpoint/etc usermod root -H 0")
== 0 or goto bad;
#
# IGB cruft; See the comment in loader.conf.orig about this.
#
if ($igbcruft) {
ExecQuiet("$SED -i -e 's,^#kern\.ipc\.nmb,kern.ipc.nmb,' " .
" loader.conf.orig") == 0 or goto bad;
}
#
# Console handling.
#
......
Markdown is supported
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