diff options
author | jpaetzel <jpaetzel@FreeBSD.org> | 2012-03-18 21:19:21 +0000 |
---|---|---|
committer | jpaetzel <jpaetzel@FreeBSD.org> | 2012-03-18 21:19:21 +0000 |
commit | 45e3b88c5de418c0ce7bd6fb6cf44fb819a0d686 (patch) | |
tree | d87f58e8d6c46a58f3c5ed915fdc4c5f6ed60588 /usr.sbin/pc-sysinstall | |
parent | 4ddc90a0c85819c296d093a9dd9c0712fca34f22 (diff) | |
download | FreeBSD-src-45e3b88c5de418c0ce7bd6fb6cf44fb819a0d686.zip FreeBSD-src-45e3b88c5de418c0ce7bd6fb6cf44fb819a0d686.tar.gz |
Redirect camcontrol stderr to /dev/null.
Diffstat (limited to 'usr.sbin/pc-sysinstall')
-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 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") |