summaryrefslogtreecommitdiffstats
path: root/perl-install/modules/parameters.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/modules/parameters.pm')
-rw-r--r--perl-install/modules/parameters.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/perl-install/modules/parameters.pm b/perl-install/modules/parameters.pm
index c3b4fb2b6..f480ca31a 100644
--- a/perl-install/modules/parameters.pm
+++ b/perl-install/modules/parameters.pm
@@ -13,15 +13,13 @@ use modules;
sub parameters {
my ($module) = @_;
- my $modinfo = find { -x $_ } qw(/sbin/modiInfo /usr/bin/modinfo) or die N("modinfo is not available");
-
if (!$::isStandalone && !$::testing) {
modules::extract_modules('/tmp', $module);
$module = "/tmp/$module.o";
}
my @parameters;
- foreach (common::join_lines(`$modinfo -p $module`)) {
+ foreach (common::join_lines(run_program::get_stdout('modinfo', '-p', $module))) {
chomp;
next if /^warning:/;
(my $name, $_) = /(\S+)\s+(.*)/s or warn "modules::parameters::get_options_name($module): unknown line\n";