mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-22 11:17:19 +00:00
Better method for grabbing disk name, dmesg may produce mangled output.
Approved by: kib (mentor, implicit)
This commit is contained in:
parent
893c4d6ef1
commit
646a7a09f5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=218959
@ -74,7 +74,7 @@ do
|
||||
fi
|
||||
|
||||
# Check the dmesg output for some more info about this device
|
||||
NEWLINE=$(dmesg | sed -n "s/^$DEV: .*<\(.*\)>.*$/ <\1>/p" | head -n 1)
|
||||
NEWLINE=$(camcontrol identify $DEV | grep "device model" | tr -s ' ' | sed 's |device model ||g')
|
||||
if [ -z "$NEWLINE" ]; then
|
||||
NEWLINE=" <Unknown Device>"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user