summaryrefslogtreecommitdiffstats
path: root/perl-install/modules.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-03-09 16:01:00 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-03-09 16:01:00 +0000
commita642542a916a17214e3b2f5748ac28a1bfe78e90 (patch)
tree0481ad6a959f6470119915a4ce8ba3e6dc5def68 /perl-install/modules.pm
parentc0716f2d6d5c67e60626bc34c1e983eb8aae2cf1 (diff)
downloaddrakx-a642542a916a17214e3b2f5748ac28a1bfe78e90.tar
drakx-a642542a916a17214e3b2f5748ac28a1bfe78e90.tar.gz
drakx-a642542a916a17214e3b2f5748ac28a1bfe78e90.tar.bz2
drakx-a642542a916a17214e3b2f5748ac28a1bfe78e90.tar.xz
drakx-a642542a916a17214e3b2f5748ac28a1bfe78e90.zip
special case to handle imm & ppa on kernel 2.6:
- need parport_pc - modules insmod always succeed, so need to check /proc/sys/dev/parport/parport0/devices/{imm,ppa}
Diffstat (limited to 'perl-install/modules.pm')
-rw-r--r--perl-install/modules.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/perl-install/modules.pm b/perl-install/modules.pm
index 616ffa93c..7bddda631 100644
--- a/perl-install/modules.pm
+++ b/perl-install/modules.pm
@@ -111,7 +111,7 @@ sub load_category {
my @try_modules = (
if_($category =~ /scsi/,
- if_(arch() !~ /ppc/, 'imm', 'ppa'),
+ if_(arch() !~ /ppc/, 'parport_pc', 'imm', 'ppa'),
if_(detect_devices::usbStorage(), 'usb-storage'),
),
if_(arch() =~ /ppc/,
@@ -418,6 +418,11 @@ sub when_load {
$conf{$name}{options} = join " ", @options if @options;
if (my $category = module2category($name)) {
+ if (c::kernel_version() =~ /^\Q2.6/ && member($name, 'imm', 'ppa')
+ && ! -d "/proc/sys/dev/parport/parport0/devices/$name") {
+ unload($name);
+ undef $category;
+ }
if ($category =~ m,disk/(scsi|hardware_raid|usb|firewire),) {
add_probeall('scsi_hostadapter', $name);
eval { load('sd_mod') };