summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorjpaetzel <jpaetzel@FreeBSD.org>2012-03-18 21:19:21 +0000
committerjpaetzel <jpaetzel@FreeBSD.org>2012-03-18 21:19:21 +0000
commit45e3b88c5de418c0ce7bd6fb6cf44fb819a0d686 (patch)
treed87f58e8d6c46a58f3c5ed915fdc4c5f6ed60588 /usr.sbin
parent4ddc90a0c85819c296d093a9dd9c0712fca34f22 (diff)
downloadFreeBSD-src-45e3b88c5de418c0ce7bd6fb6cf44fb819a0d686.zip
FreeBSD-src-45e3b88c5de418c0ce7bd6fb6cf44fb819a0d686.tar.gz
Redirect camcontrol stderr to /dev/null.
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 c8b5306..4aedae1 100755
--- a/usr.sbin/pc-sysinstall/backend-query/disk-list.sh
+++ b/usr.sbin/pc-sysinstall/backend-query/disk-list.sh
@@ -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")
OpenPOWER on IntegriCloud