Last change
on this file since 3718 was 3650, checked in by Bruno Cornec, 7 years ago |
- Fix versions given back for mr-* tools
- Log pb and mr versions in mindi log
- mr-getparam now prints a version
|
-
Property svn:executable
set to
*
|
File size:
1.2 KB
|
Rev | Line | |
---|
[3553] | 1 | #!/usr/bin/perl -w
|
---|
| 2 | #
|
---|
| 3 | # $Id$
|
---|
| 4 | # Copyright B. Cornec 2005-2016
|
---|
| 5 | # Provided under the GPL v2
|
---|
| 6 | #
|
---|
| 7 | # Test mr_disk_list to get the list of all disks
|
---|
| 8 | #
|
---|
| 9 | use strict;
|
---|
| 10 | use Data::Dumper;
|
---|
| 11 | # For pbdebug
|
---|
| 12 | use ProjectBuilder::Base;
|
---|
[3650] | 13 | use MondoRescue::Version;
|
---|
[3553] | 14 | use MondoRescue::Disk;
|
---|
| 15 |
|
---|
| 16 | =pod
|
---|
| 17 |
|
---|
| 18 | =head1 NAME
|
---|
| 19 |
|
---|
| 20 | mr-disk-list lists all the disks on the system
|
---|
| 21 |
|
---|
| 22 | =head1 DESCRIPTION
|
---|
| 23 |
|
---|
| 24 | mr-disk-list lists all the disks on the system
|
---|
| 25 |
|
---|
| 26 | =head1 SYNOPSIS
|
---|
| 27 |
|
---|
| 28 | mr-disk-list
|
---|
| 29 |
|
---|
| 30 | =head1 WEB SITES
|
---|
| 31 |
|
---|
| 32 | The main Web site of the project is available at L<http://www.mondorescue.org>. Bug reports should be filled using the trac instance of the project at L<http://trac.mondorescue.org/>.
|
---|
| 33 |
|
---|
| 34 | =head1 USER MAILING LIST
|
---|
| 35 |
|
---|
| 36 | For community exchanges around MondoRescue please use the list L<http://sourceforge.net/mailarchive/forum.php?forum_name=mondo-devel>
|
---|
| 37 |
|
---|
| 38 | =head1 AUTHORS
|
---|
| 39 |
|
---|
| 40 | The MondoRescue team lead by Bruno Cornec L<mailto:bruno@mondorescue.org>.
|
---|
| 41 |
|
---|
| 42 | =head1 COPYRIGHT
|
---|
| 43 |
|
---|
| 44 | MondoRescue is distributed under the GPL v2.0 license or later,
|
---|
| 45 | described in the file C<COPYING> included with the distribution.
|
---|
| 46 |
|
---|
| 47 | =cut
|
---|
| 48 |
|
---|
| 49 | if ((defined $ARGV[0]) && ($ARGV[0] eq "-v")) {
|
---|
| 50 | shift;
|
---|
| 51 | $pbdebug = 2;
|
---|
| 52 | }
|
---|
| 53 |
|
---|
| 54 | my $txt = "";
|
---|
| 55 | my $txt2 = "";
|
---|
| 56 | my @ans;
|
---|
| 57 |
|
---|
| 58 | @ans = mr_disk_list();
|
---|
| 59 | pb_log(0, "The list of disks on this system are: @ans\n");
|
---|
| 60 |
|
---|
| 61 | exit(0);
|
---|
Note:
See
TracBrowser
for help on using the repository browser.