diff options
author | Britney Fransen <brfransen@gmail.com> | 2018-09-06 16:35:27 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2018-09-06 16:35:27 (GMT) |
commit | 5669815ec3a539cf7b5ac7d8da2cbba3aeff44be (patch) | |
tree | f13051093a52f47f5954c2ee2a783bc2f0f62f96 /abs/core/xymon/xymon-hddtemp.sh | |
parent | 8d35f28049488f2585ef765bf48e7a58958fd587 (diff) | |
parent | 04697136037cb5341ee6c051f8aaa265c0400c82 (diff) | |
download | linhes_pkgbuild-5669815ec3a539cf7b5ac7d8da2cbba3aeff44be.zip linhes_pkgbuild-5669815ec3a539cf7b5ac7d8da2cbba3aeff44be.tar.gz linhes_pkgbuild-5669815ec3a539cf7b5ac7d8da2cbba3aeff44be.tar.bz2 |
Merge branch 'testing'
Diffstat (limited to 'abs/core/xymon/xymon-hddtemp.sh')
-rwxr-xr-x | abs/core/xymon/xymon-hddtemp.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/abs/core/xymon/xymon-hddtemp.sh b/abs/core/xymon/xymon-hddtemp.sh index 7084abc..0369b4a 100755 --- a/abs/core/xymon/xymon-hddtemp.sh +++ b/abs/core/xymon/xymon-hddtemp.sh @@ -2,7 +2,7 @@ # NOTE: Must be run as root, so you probably need to setup sudo for this. -ls /dev/disk/by-id/* | grep -ve '-part' -ve '/wwn-' | +ls /dev/disk/by-id/* | grep -ve '-part' -ve '/wwn-' -ve '/md' | while read DISK do DISKDEV=`ls -l $DISK | awk -F/ '{print $NF}'` @@ -17,7 +17,11 @@ do #check if device is mounted if ! mount | grep -q /dev/$DISKDEV then - continue + # check if device is used by mdadm + if ! cat /proc/mdstat | grep -q $DISKDEV + then + continue + fi fi #check if SMART is disabled and enable |