projects
/
gnt-info
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
699679e
)
display last selftest log for each disk
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 14 Jan 2018 10:29:02 +0000
(11:29 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 14 Jan 2018 10:29:02 +0000
(11:29 +0100)
gnt-smart.sh
[new file with mode: 0755]
patch
|
blob
diff --git a/gnt-smart.sh
b/gnt-smart.sh
new file mode 100755
(executable)
index 0000000..
958375d
--- /dev/null
+++ b/
gnt-smart.sh
@@ -0,0
+1,3
@@
+#!/bin/sh -e
+
+ls /dev/sd? | xargs -i sh -ec 'echo -n "{}\t" ; smartctl -l selftest {} | grep "^# 1"'