summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorjpaetzel <jpaetzel@FreeBSD.org>2011-02-22 19:18:56 +0000
committerjpaetzel <jpaetzel@FreeBSD.org>2011-02-22 19:18:56 +0000
commitab977d477a1dada5542808b9f050ffcf3023642f (patch)
treeda3a4e66be5f6d8fc11a44045dd36ac39399ca6d /usr.sbin
parentf2afad1aeaf2ee3687e30ab2b584a8bd7a731ddf (diff)
downloadFreeBSD-src-ab977d477a1dada5542808b9f050ffcf3023642f.zip
FreeBSD-src-ab977d477a1dada5542808b9f050ffcf3023642f.tar.gz
Better method for grabbing disk name, dmesg may produce mangled output.
Approved by: kib (mentor, implicit)
Diffstat (limited to 'usr.sbin')
-rwxr-xr-xusr.sbin/pc-sysinstall/backend-query/disk-list.sh2
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
OpenPOWER on IntegriCloud