From 646a7a09f55f2042b3c20414d430c9cc3c0978d1 Mon Sep 17 00:00:00 2001 From: Josh Paetzel Date: Tue, 22 Feb 2011 19:18:56 +0000 Subject: [PATCH] Better method for grabbing disk name, dmesg may produce mangled output. Approved by: kib (mentor, implicit) --- usr.sbin/pc-sysinstall/backend-query/disk-list.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/pc-sysinstall/backend-query/disk-list.sh b/usr.sbin/pc-sysinstall/backend-query/disk-list.sh index 4054f041d476..964d4cc9d3d7 100755 --- a/usr.sbin/pc-sysinstall/backend-query/disk-list.sh +++ b/usr.sbin/pc-sysinstall/backend-query/disk-list.sh @@ -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=" " fi