diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2001-09-12 21:29:21 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2001-09-12 21:29:21 +0000 |
commit | edf19549e71889e8374d45e57ab0bea32ad446a1 (patch) | |
tree | 9f5892a68ca1a856d97979883e61230af9db2adb /perl-install/modules.pm | |
parent | ab41a0caaae0bd15dfa2a7f4b3402f3fd25f7b1e (diff) | |
download | drakx-edf19549e71889e8374d45e57ab0bea32ad446a1.tar drakx-edf19549e71889e8374d45e57ab0bea32ad446a1.tar.gz drakx-edf19549e71889e8374d45e57ab0bea32ad446a1.tar.bz2 drakx-edf19549e71889e8374d45e57ab0bea32ad446a1.tar.xz drakx-edf19549e71889e8374d45e57ab0bea32ad446a1.zip |
display error when the kernel mismatch the modules
Diffstat (limited to 'perl-install/modules.pm')
-rw-r--r-- | perl-install/modules.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/perl-install/modules.pm b/perl-install/modules.pm index 8850147e2..a70fbd200 100644 --- a/perl-install/modules.pm +++ b/perl-install/modules.pm @@ -571,9 +571,13 @@ sub unload { } } +sub cz_file { + "/lib/modules" . (arch() eq 'sparc64' && "64") . ".cz-" . c::kernel_version(); +} + sub load_raw { my @l = map { my ($i, @i) = @$_; [ $i, \@i ] } grep { $_->[0] !~ /ignore/ } @_; - my $cz = "/lib/modules" . (arch() eq 'sparc64' && "64") . ".cz-" . c::kernel_version(); + my $cz = cz_file(); if (!-e $cz) { unlink $_ foreach glob_("/lib/modules*.cz*"); require install_any; |