Update subnet-down
This commit is contained in:
parent
37867bd980
commit
8be4082c4b
@ -10,7 +10,7 @@ if [ -z "$nonMACChars" ]; then
|
||||
rm -f /tmp/tinc/peer/$NODE/mac/$SUBNET
|
||||
|
||||
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 -n 1 -I {} "[ARP] Removing {} from the table..."
|
||||
echo $arpEntries | grep -E "at 0?*$SUBNET0?* " | sed -r 's/^.+\((.+)\).+$/\1/g' | xargs -n1 arp -d
|
||||
fi
|
||||
else
|
||||
@ -20,7 +20,7 @@ else
|
||||
rm -f /tmp/tinc/peer/$NODE/ip/$address
|
||||
|
||||
if echo $arpEntries | grep -q "\($address\)"; then
|
||||
echo "[ARP] Removing from table: $addresss"
|
||||
echo "[ARP] Removing $addresss from the table..."
|
||||
arp -d $address
|
||||
fi
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user