Update subnet-down

This commit is contained in:
Manevolent 2023-04-13 01:24:23 -06:00 committed by GitHub
parent c96b602174
commit 8555e14cda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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