svn commit: r233131 - head/usr.sbin/pc-sysinstall/backend-query

[ Available lists | Index of svn-src-head | Month of Mar 2012 | Week of 18 Mar 2012 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Josh Paetzel <jpaetzel@FreeBSD.org>
Date
18 Mar 2012 21:19:22
Subject
svn commit: r233131 - head/usr.sbin/pc-sysinstall/backend-query
Message-ID
201203182119.q2ILJLn0036293@svn.freebsd.org


[ Hide this part ]
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")


Elapsed time: 0.094 seconds