MFC r296654: Use geom disk list instead camcontrol identify.

The new way works for almost any disk, while the old only for ATA.
This commit is contained in:
mav 2016-03-28 09:34:14 +00:00
parent 1e83d7e7ec
commit 90b4836519

View File

@ -82,8 +82,8 @@ do
esac
fi
# Try and find some identification information with camcontrol
NEWLINE=$(camcontrol identify $DEV 2>/dev/null | sed -ne 's/^device model *//p')
# Try and get some identification information from GEOM
NEWLINE=$(geom disk list $DEV 2>/dev/null | sed -ne 's/^ descr: *//p')
if [ -z "$NEWLINE" ]; then
NEWLINE=" <Unknown Device>"
fi