Redirect camcontrol stderr to /dev/null.

This commit is contained in:
Josh Paetzel 2012-03-18 21:19:21 +00:00
parent 145c674dbd
commit fde89290d1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=233131

View File

@ -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")