Update check-node
This commit is contained in:
parent
3eb7134ff6
commit
e726d80431
@ -1,7 +1,12 @@
|
|||||||
#!/bin/ash
|
#!/bin/ash
|
||||||
|
|
||||||
num_macs=`ls /tmp/tinc/peer/$NODE/mac | wc -l`
|
num_macs=`ls /tmp/tinc/peer/$NODE/mac | wc -l`
|
||||||
|
num_ips=`ls /tmp/tinc/peer/$NODE/ips | wc -l`
|
||||||
if [ "$num_macs" = "1" ]; then
|
if [ "$num_macs" = "1" ]; then
|
||||||
|
if [ "$num_ips" = "0"]; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
mac=`ls /tmp/tinc/peer/$NODE/mac`
|
mac=`ls /tmp/tinc/peer/$NODE/mac`
|
||||||
ips=`ls /tmp/tinc/peer/$NODE/ip`
|
ips=`ls /tmp/tinc/peer/$NODE/ip`
|
||||||
echo $ips | xargs -n 1 -I {} echo "[ARP] Adding {} to the table..."
|
echo $ips | xargs -n 1 -I {} echo "[ARP] Adding {} to the table..."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user