Skip to content

Commit

Permalink
harmonize log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
kewlfft committed Apr 2, 2021
1 parent c5ba4c0 commit 441d4a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opennic-up
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ done
initdns=${initdns:-"185.121.177.177 169.239.202.202 172.98.193.42"}
# retrieve first responding dns from initdns list
log "Selecting DNS among $initdns..."
respondingdns=$(multiping 1 $initdns | awk -F/ '$5 + 0.0 < 10' | awk '{print $1;exit}')
respondingdns=$(multiping 2 $initdns | awk -F/ '$5 + 0.0 < 10' | awk '{print $1;exit}')
if [ -z "$respondingdns" ]; then
# none responding, network may be down, wait for first
waitdns=$(echo "$initdns" | awk '{print $1}')
Expand Down Expand Up @@ -184,7 +184,7 @@ if [ "$reliablecount" -ge 2 ]; then
echo "$otherlines"$'\n'"$nameservers" > "$resolvconf"
log 'Successful DNS update'
else
warning "no write access to $resolvconf, no change"
warning "no write access to '$resolvconf', no change"
fi
fi
fi
Expand Down

0 comments on commit 441d4a5

Please sign in to comment.