mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-17 13:53:39 +00:00
Alter comment to reflect change in code.
Try atacontrol if camcontrol fails. Approved by: kib (mentor, implicit)
This commit is contained in:
parent
ce52330412
commit
8a20c5a39f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=218975
|
@ -73,10 +73,15 @@ do
|
|||
esac
|
||||
fi
|
||||
|
||||
# Check the dmesg output for some more info about this device
|
||||
NEWLINE=$(camcontrol identify $DEV | grep "device model" | tr -s ' ' | sed 's |device model ||g')
|
||||
# Try and find some identification information with camcontrol or atacontrol
|
||||
NEWLINE=$(camcontrol identify $DEV | sed -ne 's/^device model *//p')
|
||||
if [ -z "$NEWLINE" ]; then
|
||||
NEWLINE=" <Unknown Device>"
|
||||
# Now try atacontrol
|
||||
NEWLINE=$(atacontrol list | sed -n "s|^.*$DEV <\(.*\)>.*|\1|p")
|
||||
|
||||
if [ -z "$NEWLINE" ]; then
|
||||
NEWLINE=" <Unknown Device>"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -n "${FLAGS_MD}" ] && echo "${DEV}" | grep -E '^md[0-9]+' >/dev/null 2>/dev/null
|
||||
|
|
Loading…
Reference in a new issue