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")
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to