summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-09-28 15:30:50 +0000
committerOlivier Blin <oblin@mandriva.org>2005-09-28 15:30:50 +0000
commitc8c279e9bace7e954a3aa3412edd833187229564 (patch)
tree851cd87bfca8502fc66e4235fe51623e23af9884
parent2e5c4782e6d6fa3c449f6e94b67518a57a0c1d24 (diff)
downloaddrakx-c8c279e9bace7e954a3aa3412edd833187229564.tar
drakx-c8c279e9bace7e954a3aa3412edd833187229564.tar.gz
drakx-c8c279e9bace7e954a3aa3412edd833187229564.tar.bz2
drakx-c8c279e9bace7e954a3aa3412edd833187229564.tar.xz
drakx-c8c279e9bace7e954a3aa3412edd833187229564.zip
use correct directory to list modules when called from another directory
-rw-r--r--kernel/modules.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/modules.pl b/kernel/modules.pl
index 914cba374..68e6c4ab9 100644
--- a/kernel/modules.pl
+++ b/kernel/modules.pl
@@ -206,8 +206,9 @@ sub make_modules_description {
}
sub get_main_modules() {
- my $main = chomp_(cat_('RPMS/.main'));
- `tar tvf all.kernels/$main/all_modules.tar | awk '{ print \$6 }'`
+ my $base = dirname($0);
+ my $main = chomp_(cat_("$base/RPMS/.main"));
+ `tar tvf $base/all.kernels/$main/all_modules.tar | awk '{ print \$6 }'`
}
sub pci_modules4stage1 {