38 lines
905 B
Bash
38 lines
905 B
Bash
#/bin/bash
|
|
|
|
RET=0
|
|
|
|
sleep 2
|
|
|
|
echo " "
|
|
echo " "
|
|
echo " "
|
|
echo "######################################################################################"
|
|
echo "####################### Two NVMe SSD M.2 KeyM Testing Start ##########################"
|
|
|
|
result=`fdisk -l /dev/nvme0n1 | grep "bytes" | grep "sectors" | wc -l`
|
|
if [ ${result} -gt 0 ]; then
|
|
echo "### NVMe SSD M.2 KeyM-A can be detected successfully. ###"
|
|
else
|
|
RET=1
|
|
echo "Error Notice: NVMe SSD M.2 KeyM-A can not be detected, failure."
|
|
fi
|
|
|
|
result=`fdisk -l /dev/nvme1n1 | grep "bytes" | grep "sectors" | wc -l`
|
|
if [ ${result} -gt 0 ]; then
|
|
echo "### NVMe SSD M.2 KeyM-B can be detected successfully. ###"
|
|
else
|
|
RET=1
|
|
echo "Error Notice: NVMe SSD M.2 KeyM-B can not be detected, failure."
|
|
fi
|
|
|
|
echo "######################################################################################"
|
|
echo " "
|
|
echo " "
|
|
echo " "
|
|
|
|
sleep 2
|
|
|
|
return ${RET}
|
|
|