mirror of
https://github.com/byReqz/stocheck.git
synced 2024-12-25 18:41:48 +00:00
fixed 3ware typo
This commit is contained in:
parent
b8c1cf97e2
commit
10a7da4f73
@ -15,7 +15,7 @@ if [[ $(whoami) != "root" ]] && [[ "$1" != "-u" ]];then
|
||||
exit
|
||||
fi
|
||||
while [ -z "$1" ]; do
|
||||
raidcheck="$(lspci | grep -E 'LSI|3Ware|Adaptec|Smartraid')"
|
||||
raidcheck="$(lspci | grep -E 'LSI|3ware|Adaptec|Smartraid')"
|
||||
if [[ -z "$raidcheck" ]];then
|
||||
if [[ -n $(ls /proc | grep -e "mdstat") ]];then
|
||||
raidlist=$(grep -e "md" /proc/mdstat | cut -d " " -f 1)
|
||||
@ -111,7 +111,7 @@ while [ -z "$1" ]; do
|
||||
echo "no drives detected"
|
||||
exit
|
||||
fi
|
||||
elif [[ -n $(echo "$raidcheck" | grep -e "3Ware") ]];then
|
||||
elif [[ -n $(echo "$raidcheck" | grep -e "3ware") ]];then
|
||||
echo "3ware raid-controller detected"
|
||||
dreiware=$(tw_cli show | grep c | cut -c -3)
|
||||
echo "------------------- 3ware controller: $dreiware --------------------"
|
||||
|
Loading…
Reference in New Issue
Block a user