From b22c5d87da520d2c886a8652bbac45da87cf051a Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 3 Feb 2003 07:57:34 +0000 Subject: pixelize(tm) --- perl-install/modules/parameters.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/perl-install/modules/parameters.pm b/perl-install/modules/parameters.pm index 59829389c..c3b4fb2b6 100644 --- a/perl-install/modules/parameters.pm +++ b/perl-install/modules/parameters.pm @@ -13,9 +13,7 @@ use modules; sub parameters { my ($module) = @_; - my $modinfo = '/sbin/modinfo'; - -x $modinfo or $modinfo = '/usr/bin/modinfo'; - -x $modinfo or die N("modinfo is not available"); + 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); -- cgit v1.2.1