projects
/
gnt-info
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
don't leave megaraid left-over files
[gnt-info]
/
smart-megaraid.sh
diff --git
a/smart-megaraid.sh
b/smart-megaraid.sh
index
35db0c9
..
d91b040
100755
(executable)
--- 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