mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-11-04 04:38:02 +00:00 
			
		
		
		
	Added missing count to grep
This commit is contained in:
		@@ -13,7 +13,7 @@ GUIDIR="${HL}/LANforgeGUI_${verNum}"
 | 
				
			|||||||
ST="/tmp/summary.txt"
 | 
					ST="/tmp/summary.txt"
 | 
				
			||||||
IP="192.168.95.239"
 | 
					IP="192.168.95.239"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
numFound=$(find "${GUIDIR} -iname down-check" -mmin 60 | grep "down-check")
 | 
					numFound=$(find "${GUIDIR} -iname down-check" -mmin 60 | grep -c "down-check")
 | 
				
			||||||
if [[  $numFound == 1 ]]; then
 | 
					if [[  $numFound == 1 ]]; then
 | 
				
			||||||
  ping -c2 -i1 -nq -w2 -W2 ${IP}
 | 
					  ping -c2 -i1 -nq -w2 -W2 ${IP}
 | 
				
			||||||
  if [[ 1 != $? ]]; then
 | 
					  if [[ 1 != $? ]]; then
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user