Révision 0e92a22b
pod added
| plugins/disk/e2 | ||
|---|---|---|
| 1 | 1 |
#!/bin/bash |
| 2 | 2 |
|
| 3 |
true << =cut |
|
| 4 |
|
|
| 5 |
=head1 NAME |
|
| 6 |
|
|
| 7 |
ext2 - Wildcard plugin shows ext2/3/4 filesystem information (mount count, last checked, lifetime writes) |
|
| 8 |
|
|
| 9 |
=head1 CONFIGURATION |
|
| 10 |
|
|
| 11 |
[ext2_*] |
|
| 12 |
group disk,floppy |
|
| 13 |
|
|
| 14 |
=head1 AUTHOR |
|
| 15 |
|
|
| 16 |
Andreas Hrubak <> |
|
| 17 |
|
|
| 18 |
=head1 LICENSE |
|
| 19 |
|
|
| 20 |
GPLv2 |
|
| 21 |
|
|
| 22 |
=head1 MAGICK MARKERS |
|
| 23 |
|
|
| 24 |
#%# family=disk |
|
| 25 |
#%# capabilities=autoconf |
|
| 26 |
|
|
| 27 |
=cut |
|
| 3 | 28 |
|
| 4 | 29 |
print_details() {
|
| 5 | 30 |
local myname |
| ... | ... | |
| 30 | 55 |
|
| 31 | 56 |
|
| 32 | 57 |
if [ "$1" = "autoconf" ]; then |
| 33 |
if [ -x "`dumpe2fs`" ]; then
|
|
| 58 |
if which dumpe2fs >/dev/null 2>&1; then
|
|
| 34 | 59 |
echo yes |
| 35 | 60 |
exit 0 |
| 36 | 61 |
else |
Formats disponibles : Unified diff