Update check-node
This commit is contained in:
parent
1d557f7331
commit
a2050504fe
@ -4,6 +4,6 @@ num_macs=`ls /tmp/tinc/peer/$NODE/mac | wc -l`
|
||||
if [ "$num_macs" = "1" ]; then
|
||||
mac=`ls /tmp/tinc/peer/$NODE/mac`
|
||||
ips=`ls /tmp/tinc/peer/$NODE/ip`
|
||||
echo $ips | xargs -n 1 -I {} "[ARP] Adding {} to the table..."
|
||||
echo $ips | xargs -n 1 -I {} echo "[ARP] Adding {} to the table..."
|
||||
echo $ips | xargs -n 1 -I {} arp -s {} $mac
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user