Update check-node

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

View File

@ -1,7 +1,7 @@
#!/bin/ash
num_macs=`ls /tmp/tinc/peer/$NODE/mac | wc -l`
num_ips=`ls /tmp/tinc/peer/$NODE/ips | wc -l`
num_ips=`ls /tmp/tinc/peer/$NODE/ip | wc -l`
if [ "$num_macs" = "1" ]; then
if [ "$num_ips" = "0"]; then
exit 1