1
0
mirror of https://github.com/byReqz/stocheck.git synced 2024-11-22 14:41:15 +00:00
This commit is contained in:
Nils 2021-01-24 21:49:56 +00:00 committed by GitHub
parent 4967cc5d0a
commit c71fd842e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,7 @@ if [[ $(curl -s https://raw.githubusercontent.com/byReqz/stocheck/main/stocheck.
echo "" echo ""
fi fi
while [ -z "$1" ]; do 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 [[ -z "$raidcheck" ]];then
if [[ -n $(ls /sys/block | grep sd) ]];then if [[ -n $(ls /sys/block | grep sd) ]];then
echo "=== sata drive check: ===" echo "=== sata drive check: ==="