diff options
author | Josh Paetzel <jpaetzel@FreeBSD.org> | 2012-03-18 21:19:21 +0000 |
---|---|---|
committer | Josh Paetzel <jpaetzel@FreeBSD.org> | 2012-03-18 21:19:21 +0000 |
commit | fde89290d125c43a613c2c74468f88f1bdbec75a (patch) | |
tree | d87f58e8d6c46a58f3c5ed915fdc4c5f6ed60588 /usr.sbin | |
parent | 145c674dbdefb79c782cdd900c9d70b83107b81e (diff) | |
download | src-fde89290d125c43a613c2c74468f88f1bdbec75a.tar.gz src-fde89290d125c43a613c2c74468f88f1bdbec75a.zip |
Redirect camcontrol stderr to /dev/null.
Notes
Notes:
svn path=/head/; revision=233131
Diffstat (limited to 'usr.sbin')
-rwxr-xr-x | usr.sbin/pc-sysinstall/backend-query/disk-list.sh | 2 |
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 c8b53065bcf4..4aedae182969 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") |