From: Michael Prokop Date: Tue, 18 Jun 2013 14:44:09 +0000 (+0200) Subject: Add support for sg_inq from sg3-utils X-Git-Tag: v0.9.0~2 X-Git-Url: https://git.grml.org/?a=commitdiff_plain;h=63be8b7f867963defe9bbee7abb6dc1d70c1f816;p=grml-hwinfo.git Add support for sg_inq from sg3-utils --- diff --git a/debian/control b/debian/control index 8379d5d..35c81a4 100644 --- a/debian/control +++ b/debian/control @@ -31,6 +31,7 @@ Recommends: acpi, parted, powermgmt-base, procinfo, + sg3-utils, smartmontools, usbutils, x11-utils, diff --git a/grml-hwinfo b/grml-hwinfo index 0780e8b..6cbda82 100755 --- 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