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:
parent
1e83d7e7ec
commit
90b4836519
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user