diff --git a/tinc/subnet-down b/tinc/subnet-down index ea41116..d1c0fc0 100644 --- a/tinc/subnet-down +++ b/tinc/subnet-down @@ -11,7 +11,7 @@ if [ -z "$nonMACChars" ]; then if echo $arpEntries | grep -q -E "at $SUBNET "; then echo $arpEntries | grep -E "at 0?*$SUBNET0?* " | sed -r 's/^.+\((.+)\).+$/\1/g' | xargs -n1 -I {} echo "[ARP] Removing {} from the 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 -I {} arp -d {} fi else # This subnet is an IP address