Check for intel RAID devices

Submitted by:	kris
Obtained from:	PC-BSD
This commit is contained in:
Josh Paetzel 2012-03-12 21:24:40 +00:00
parent 937b9d55e7
commit 689d811165
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=232895

View File

@ -58,6 +58,18 @@ then
fi
fi
# Add any RAID devices
if [ -d "/dev/raid" ] ; then
cd /dev/raid
for i in `ls`
do
case ${i} in
r0|r1|r2|r3|r4|r5) SYSDISK="${SYSDISK} ${i}" ;;
*) ;;
esac
done
fi
# Now loop through these devices, and list the disk drives
for i in ${SYSDISK}
do
@ -77,7 +89,7 @@ do
NEWLINE=$(camcontrol identify $DEV | sed -ne 's/^device model *//p')
if [ -z "$NEWLINE" ]; then
# Now try atacontrol
NEWLINE=$(atacontrol list | sed -n "s|^.*$DEV <\(.*\)>.*|\1|p")
NEWLINE=$(atacontrol list 2>/dev/null | sed -n "s|^.*$DEV <\(.*\)>.*|\1|p")
if [ -z "$NEWLINE" ]; then
NEWLINE=" <Unknown Device>"