summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormurray <murray@FreeBSD.org>2002-05-01 04:54:35 +0000
committermurray <murray@FreeBSD.org>2002-05-01 04:54:35 +0000
commitd4863b60f2bcb1c1aba0165142e958cb7ae60861 (patch)
tree9356ce6eb7b16fac3ff2e3f9536df6aed66e7044
parente87aeffbf0ef9f0ee612cc8ee324d36da9d86507 (diff)
downloadFreeBSD-src-d4863b60f2bcb1c1aba0165142e958cb7ae60861.zip
FreeBSD-src-d4863b60f2bcb1c1aba0165142e958cb7ae60861.tar.gz
Add support for kernel options to be removed from the BOOTMFS kernel
and loaded as modules, not just kernel devices.
-rw-r--r--release/scripts/driver-remove.pl7
1 files changed, 6 insertions, 1 deletions
diff --git a/release/scripts/driver-remove.pl b/release/scripts/driver-remove.pl
index aa8ec1c..879e290 100644
--- a/release/scripts/driver-remove.pl
+++ b/release/scripts/driver-remove.pl
@@ -39,7 +39,11 @@ open CONFIG, "< $config" or die "Cannot open $config.\n";
while (<CONFIG>) {
s/#.*$//;
if (/^(\w+)\s+(\w+)\s+(\d+)\s+(\w+)\s+\"(.*)\"\s*$/) {
- $drivers{$1} = 1;
+ if ($4 eq "options") {
+ $options{$1} = 1;
+ } else {
+ $drivers{$1} = 1;
+ }
}
}
close CONFIG;
@@ -47,6 +51,7 @@ close CONFIG;
open BOOTMFS, "< $bootmfs" or die "Cannot open $bootmfs.\n";
while (<BOOTMFS>) {
next if (/^device\s+(\w+)/ && $drivers{$1});
+ next if (/^options\s+(\w+)/ && $options{$1});
push @bootmfs, $_;
}
close BOOTMFS;
OpenPOWER on IntegriCloud