summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/modparm.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/perl-install/modparm.pm b/perl-install/modparm.pm
index b8fe75f49..50130e1a9 100644
--- a/perl-install/modparm.pm
+++ b/perl-install/modparm.pm
@@ -23,6 +23,9 @@ sub get_options_name($) {
my ($module) = @_;
my @names;
+ $modinfo = '/sbin/modinfo';
+ -e $modinfo or $modinfo = '/usr/bin/modinfo';
+ -e $modinfo or die _('modinfo is not available');
my @line = `/sbin/modinfo -p $module`;
print "yop : @line \n";
foreach (@line) {