Redirect hdparm + sg_inq errors to according .error files
authorMichael Prokop <mika@grml.org>
Mon, 14 Dec 2015 12:25:23 +0000 (13:25 +0100)
committerMichael Prokop <mika@grml.org>
Mon, 14 Dec 2015 12:25:23 +0000 (13:25 +0100)
commit588c3c881bfb3f806f8a49bf1d3ec9bc86204d65
treee579c8ea5bd2e6eb72e2c2f782b8cb5caba22b64
parent3e8d59e50ce8d91a04a0d1fc2014cf4b6d1d88d2
Redirect hdparm + sg_inq errors to according .error files

sg_inq might raise:

Both SCSI INQUIRY and fetching ATA information failed on /dev/vda

and hdparm might raise:

HDIO_DRIVE_CMD(identify) failed: Inappropriate ioctl for device
HDIO_GET_IDENTITY failed: Inappropriate ioctl for device

This is annoying when running grml-hwinfo under cron, so
let's redirect this output to their according .error files.
grml-hwinfo