projects
/
grml-hwinfo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add support for sg_inq from sg3-utils
[grml-hwinfo.git]
/
grml-hwinfo
diff --git
a/grml-hwinfo
b/grml-hwinfo
index
0780e8b
..
6cbda82
100755
(executable)
--- a/
grml-hwinfo
+++ b/
grml-hwinfo
@@
-336,6
+336,12
@@
cd "${OUTDIR}" || exit 1
echo -e "\n\n" >> sdparm
fi
+ if exectest sg_inq ; then
+ echo -e "sg_inq /dev/${disk}:\n" >> sg_inq
+ sg_inq /dev/$disk >> sg_inq
+ echo -e "\n\n" >> sg_inq
+ fi
+
file -s /dev/$disk?* | grep -v ": empty" >> file_disk
done
fi