svn commit: r233131 - head/usr.sbin/pc-sysinstall/backend-query
Josh Paetzel
jpaetzel at FreeBSD.org
Sun Mar 18 21:19:22 UTC 2012
Author: jpaetzel
Date: Sun Mar 18 21:19:21 2012
New Revision: 233131
URL: http://svn.freebsd.org/changeset/base/233131
Log:
Redirect camcontrol stderr to /dev/null.
Modified:
head/usr.sbin/pc-sysinstall/backend-query/disk-list.sh
Modified: head/usr.sbin/pc-sysinstall/backend-query/disk-list.sh
==============================================================================
--- head/usr.sbin/pc-sysinstall/backend-query/disk-list.sh Sun Mar 18 20:34:01 2012 (r233130)
+++ head/usr.sbin/pc-sysinstall/backend-query/disk-list.sh Sun Mar 18 21:19:21 2012 (r233131)
@@ -86,7 +86,7 @@ do
fi
# Try and find some identification information with camcontrol or atacontrol
- NEWLINE=$(camcontrol identify $DEV | sed -ne 's/^device model *//p')
+ NEWLINE=$(camcontrol identify $DEV 2>/dev/null | sed -ne 's/^device model *//p')
if [ -z "$NEWLINE" ]; then
# Now try atacontrol
NEWLINE=$(atacontrol list 2>/dev/null | sed -n "s|^.*$DEV <\(.*\)>.*|\1|p")
More information about the svn-src-all
mailing list