Redirect camcontrol stderr to /dev/null.
This commit is contained in:
parent
145c674dbd
commit
fde89290d1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=233131
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user