aboutsummaryrefslogtreecommitdiff
path: root/handlers/sys.in
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2008-06-24 19:57:31 +0000
committerMicah Anderson <micah@riseup.net>2008-06-24 19:57:31 +0000
commit910abf33c79c8930dc8edd42842999cceee4e379 (patch)
tree5fc5b3fe370819be26768d2064d5bbfe600bda22 /handlers/sys.in
parent4d81bb451c2cc8d5ffac5cf4ad64d524ae55c66f (diff)
downloadbackupninja-910abf33c79c8930dc8edd42842999cceee4e379.tar.gz
backupninja-910abf33c79c8930dc8edd42842999cceee4e379.tar.bz2
added more robust mdadm raid device capture, by actually scanning active arrays via mdadm, rather than just catting the mdadm.conf file, which may be empty
Diffstat (limited to 'handlers/sys.in')
-rwxr-xr-xhandlers/sys.in7
1 files changed, 5 insertions, 2 deletions
diff --git a/handlers/sys.in b/handlers/sys.in
index 9e6343f..cf4d77e 100755
--- a/handlers/sys.in
+++ b/handlers/sys.in
@@ -382,7 +382,7 @@ STATUS="Gathering information about your ide drivers:"
catiffile "/proc/ide"
STATUS="Gathering information about your bus:"
-catifexec lspci
+catifexec "/usr/bin/lspci"
catiffile "/proc/bus"
echo
@@ -393,7 +393,7 @@ STATUS="Collecting information from /etc/fstab:"
catiffile "/etc/fstab"
STATUS="Collecting disk partition information:"
-catifexec "fdisk -l"
+catifexec "/sbin/fdisk -l"
STATUS="Checking mounted file systems (mount) "
catifexec "/bin/mount"
@@ -410,6 +410,9 @@ catiffile "/etc/raidtab"
STATUS="Collecting Software RAID information (/etc/mdadm.conf)"
catiffile "/etc/mdadm.conf"
+STATUS="Collecting Software RAID information (/sbin/mdadm -Q)"
+catifexec "/sbin/mdadm" "-Q" "--detail" '/dev/md?*'
+
STATUS="Collecting Automount information (auto.master)"
catiffile "/etc/auto.master"