|
Last change
on this file since 3249 was 3249, checked in by Bruno Cornec, 12 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
|
| Rev | Line | |
|---|
| [3213] | 1 | #!/usr/bin/perl -w
|
|---|
| 2 |
|
|---|
| 3 | use strict;
|
|---|
| 4 | use POSIX "uname";
|
|---|
| 5 | use Data::Dumper;
|
|---|
| [3249] | 6 | use ProjectBuilder::Base;
|
|---|
| 7 | use MondoRescue::Kernel;
|
|---|
| [3213] | 8 |
|
|---|
| [3249] | 9 | my $ver = undef;
|
|---|
| [3213] | 10 |
|
|---|
| [3249] | 11 | if ((defined $ARGV[0]) && ($ARGV[0] eq "-v")) {
|
|---|
| 12 | #$pbverbose = 1;
|
|---|
| 13 | shift;
|
|---|
| [3213] | 14 | }
|
|---|
| [3249] | 15 | if ((defined $ARGV[0]) && ($ARGV[0] eq "-k")) {
|
|---|
| 16 | shift;
|
|---|
| 17 | $ver = $ARGV[0];
|
|---|
| 18 | shift;
|
|---|
| [3213] | 19 | }
|
|---|
| [3249] | 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.