From ab977d477a1dada5542808b9f050ffcf3023642f Mon Sep 17 00:00:00 2001 From: jpaetzel Date: Tue, 22 Feb 2011 19:18:56 +0000 Subject: 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(-) (limited to 'usr.sbin') diff --git a/usr.sbin/pc-sysinstall/backend-query/disk-list.sh b/usr.sbin/pc-sysinstall/backend-query/disk-list.sh index 4054f04..964d4cc 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 -- cgit v1.1