Update subnet-down
This commit is contained in:
		
							parent
							
								
									b1798fc1f0
								
							
						
					
					
						commit
						063341cabc
					
				@ -10,7 +10,7 @@ if [ -z "$nonMACChars" ]; then
 | 
				
			|||||||
  rm -f /tmp/tinc/peer/$NODE/mac/$SUBNET
 | 
					  rm -f /tmp/tinc/peer/$NODE/mac/$SUBNET
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
  if echo $arpEntries | grep -q -E "at $SUBNET "; then
 | 
					  if echo $arpEntries | grep -q -E "at $SUBNET "; then
 | 
				
			||||||
      echo $arpEntries | grep -E "at 0?*$SUBNET0?* " | sed -r 's/^.+\((.+)\).+$/\1/g' | xargs -n1 echo "[ARP] Removing from table: "
 | 
					      echo $arpEntries | grep -E "at 0?*$SUBNET0?* " | sed -r 's/^.+\((.+)\).+$/\1/g' | xargs -n1 echo [ARP] Removing from table: 
 | 
				
			||||||
      echo $arpEntries | grep -E "at 0?*$SUBNET0?* " | sed -r 's/^.+\((.+)\).+$/\1/g' | xargs -n1 arp -d
 | 
					      echo $arpEntries | grep -E "at 0?*$SUBNET0?* " | sed -r 's/^.+\((.+)\).+$/\1/g' | xargs -n1 arp -d
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user