X-Git-Url: http://git.rot13.org/?p=gnt-info;a=blobdiff_plain;f=smart-megaraid.sh;h=d91b04040d980a18506315368c442a3ad7af8987;hp=35db0c90208edc902a7273952f75e5489f81ed21;hb=3b0404a0d7e5ffad3514dbc5ee9b50c649dddaea;hpb=fe99bd6fb4dd7882845522e14bc2a61ebfe236c7 diff --git a/smart-megaraid.sh b/smart-megaraid.sh index 35db0c9..d91b040 100755 --- a/smart-megaraid.sh +++ b/smart-megaraid.sh @@ -28,6 +28,7 @@ lsblk --noheadings --scsi -o name | while read drive ; do smartctl -a /dev/$drive > /dev/shm/smart.$drive if egrep -q '(PERC|MegaRaid|DELL)' /dev/shm/smart.$drive ; then megaraid $drive + rm /dev/shm/smart.$drive fi done