summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/modparm.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/perl-install/modparm.pm b/perl-install/modparm.pm
index 700056eff..5432ea762 100644
--- a/perl-install/modparm.pm
+++ b/perl-install/modparm.pm
@@ -26,11 +26,12 @@ sub get_options_name($) {
my @names;
$modinfo = $::isStandalone ? '/sbin/modinfo' : '/usr/bin/modinfo';
-e $modinfo or die _('modinfo is not available');
+ my @line;
if ($::isStandalone) {
- my @line = `$modinfo -p $module`;
+ @line = `$modinfo -p $module`;
} else {
modules::extract_modules('/tmp', $module);
- my @line = `$modinfo -p /tmp/$module.o`;
+ @line = `$modinfo -p /tmp/$module.o`;
}
foreach (@line) {
chomp;