source: branches/3.2/MondoRescue/bin/mr-kernel-get-modules @ 3262

Last change on this file since 3262 was 3250, checked in by Bruno Cornec, 6 years ago
  • The mr-kernel-get-modules program now returns all the full paths for all modules passed in parameters with their dependencies. Which is

exactly what needs mindi

  • Property svn:executable set to *
File size: 414 bytes
Line 
1#!/usr/bin/perl -w
2
3use strict;
4use POSIX "uname";
5use Data::Dumper;
6use ProjectBuilder::Base;
7use MondoRescue::Kernel;
8
9my $ver = undef;
10
11if ((defined $ARGV[0]) && ($ARGV[0] eq "-v")) {
12    #$pbverbose = 1;
13    shift;
14}
15if ((defined $ARGV[0]) && ($ARGV[0] eq "-k")) {
16    shift;
17    $ver = $ARGV[0];
18    shift;
19}
20if ((defined $ARGV[0]) && ($ARGV[0] eq "-m")) {
21    shift;
22}
23
24print join(' ',mr_kernel_get_modules($ver,@ARGV))."\n";
Note: See TracBrowser for help on using the repository browser.