summaryrefslogtreecommitdiffstats
path: root/perl-install/modparm.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-07-10 16:08:30 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-07-10 16:08:30 +0000
commitaa62b3f8750fc048089fcf03a45daddd448ecdf5 (patch)
treee1f8639074048cf536caac40bbca19413293cae8 /perl-install/modparm.pm
parent15d59596164890a85060f639d7115e4cbd19644f (diff)
downloaddrakx-aa62b3f8750fc048089fcf03a45daddd448ecdf5.tar
drakx-aa62b3f8750fc048089fcf03a45daddd448ecdf5.tar.gz
drakx-aa62b3f8750fc048089fcf03a45daddd448ecdf5.tar.bz2
drakx-aa62b3f8750fc048089fcf03a45daddd448ecdf5.tar.xz
drakx-aa62b3f8750fc048089fcf03a45daddd448ecdf5.zip
rollback titi's modif
Diffstat (limited to 'perl-install/modparm.pm')
-rw-r--r--perl-install/modparm.pm6
1 files changed, 2 insertions, 4 deletions
diff --git a/perl-install/modparm.pm b/perl-install/modparm.pm
index d7fc84c0f..ee5fd46ab 100644
--- a/perl-install/modparm.pm
+++ b/perl-install/modparm.pm
@@ -14,10 +14,8 @@ sub parameters {
my ($module) = @_;
my $modinfo = '/sbin/modinfo';
- if (-x $modinfo) {
- $modinfo = '/usr/bin/modinfo';
- -x $modinfo or die _('modinfo is not available');
- }
+ -x $modinfo or $modinfo = '/usr/bin/modinfo';
+ -x $modinfo or die _('modinfo is not available');
if (!$::isStandalone && !$::testing) {
modules::extract_modules('/tmp', $module);