projects
/
grml-hwinfo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11eeed7
)
Add support for sg_inq from sg3-utils
author
Michael Prokop
<mika@grml.org>
Tue, 18 Jun 2013 14:44:09 +0000
(16:44 +0200)
committer
Michael Prokop
<mika@grml.org>
Tue, 18 Jun 2013 14:44:09 +0000
(16:44 +0200)
debian/control
patch
|
blob
|
history
grml-hwinfo
patch
|
blob
|
history
diff --git
a/debian/control
b/debian/control
index
8379d5d
..
35c81a4
100644
(file)
--- 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
(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