diff options
author | jpaetzel <jpaetzel@FreeBSD.org> | 2011-02-22 19:18:56 +0000 |
---|---|---|
committer | jpaetzel <jpaetzel@FreeBSD.org> | 2011-02-22 19:18:56 +0000 |
commit | ab977d477a1dada5542808b9f050ffcf3023642f (patch) | |
tree | da3a4e66be5f6d8fc11a44045dd36ac39399ca6d | |
parent | f2afad1aeaf2ee3687e30ab2b584a8bd7a731ddf (diff) | |
download | FreeBSD-src-ab977d477a1dada5542808b9f050ffcf3023642f.zip FreeBSD-src-ab977d477a1dada5542808b9f050ffcf3023642f.tar.gz |
Better method for grabbing disk name, dmesg may produce mangled output.
Approved by: kib (mentor, implicit)
-rwxr-xr-x | usr.sbin/pc-sysinstall/backend-query/disk-list.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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=" <Unknown Device>" fi |