mirror of
				https://github.com/byReqz/stocheck.git
				synced 2025-11-03 20:21:30 +00:00 
			
		
		
		
	fix mdstat detection error
This commit is contained in:
		@@ -17,7 +17,7 @@ fi
 | 
			
		||||
while [ -z "$1" ]; do
 | 
			
		||||
  raidcheck="$(lspci | grep -E 'LSI|3ware|Adaptec|Smartraid')"
 | 
			
		||||
  if [[ -z "$raidcheck" ]];then
 | 
			
		||||
    if [[ -n $(ls /proc | grep -e "mdstat") ]];then
 | 
			
		||||
    if [[ -n $(ls /proc | grep -e "mdstat") ]] && [[ -n $(grep -e "md" /proc/mdstat) ]];then
 | 
			
		||||
      raidlist=$(grep -e "md" /proc/mdstat | cut -d " " -f 1)
 | 
			
		||||
      raidlist2=$(echo "$raidlist" | wc -l)
 | 
			
		||||
      df=$(df -Th)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user