Last change
on this file since 3249 was 3249, checked in by Bruno Cornec, 10 years ago |
- create function mr_kernel_get_modules in MondoRescue::Kernel.pm from
code previously in get-modules.pl which now just calls it
|
-
Property svn:executable
set to
*
|
File size:
455 bytes
|
Line | |
---|
1 | #!/usr/bin/perl -w
|
---|
2 |
|
---|
3 | use strict;
|
---|
4 | use POSIX "uname";
|
---|
5 | use Data::Dumper;
|
---|
6 | use ProjectBuilder::Base;
|
---|
7 | use MondoRescue::Kernel;
|
---|
8 |
|
---|
9 | my $ver = undef;
|
---|
10 |
|
---|
11 | if ((defined $ARGV[0]) && ($ARGV[0] eq "-v")) {
|
---|
12 | #$pbverbose = 1;
|
---|
13 | shift;
|
---|
14 | }
|
---|
15 | if ((defined $ARGV[0]) && ($ARGV[0] eq "-k")) {
|
---|
16 | shift;
|
---|
17 | $ver = $ARGV[0];
|
---|
18 | shift;
|
---|
19 | }
|
---|
20 | my ($modulepath,@allmodpaths) = mr_kernel_get_modules($ver,@ARGV);
|
---|
21 | print "modules path: $modulepath\n";
|
---|
22 | print "all modpaths: ".join(' ',@allmodpaths)."\n";
|
---|
Note:
See
TracBrowser
for help on using the repository browser.