diff options
author | Olivier Blin <oblin@mandriva.org> | 2005-09-28 15:30:50 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2005-09-28 15:30:50 +0000 |
commit | c8c279e9bace7e954a3aa3412edd833187229564 (patch) | |
tree | 851cd87bfca8502fc66e4235fe51623e23af9884 /kernel | |
parent | 2e5c4782e6d6fa3c449f6e94b67518a57a0c1d24 (diff) | |
download | drakx-backup-do-not-use-c8c279e9bace7e954a3aa3412edd833187229564.tar drakx-backup-do-not-use-c8c279e9bace7e954a3aa3412edd833187229564.tar.gz drakx-backup-do-not-use-c8c279e9bace7e954a3aa3412edd833187229564.tar.bz2 drakx-backup-do-not-use-c8c279e9bace7e954a3aa3412edd833187229564.tar.xz drakx-backup-do-not-use-c8c279e9bace7e954a3aa3412edd833187229564.zip |
use correct directory to list modules when called from another directory
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/modules.pl | 5 |
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 { |