Fix negated boolean in resolvconf check

This commit is contained in:
fnux 2020-01-24 11:53:29 +01:00
parent ceb657d237
commit 7b0bdd16d0
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ wait_for_resolvconf () {
fi
echo "Waiting for resolv.conf to be populated..."
if [ ! -f '/etc/resolv.conf' ]; then
if [ -f '/etc/resolv.conf' ]; then
if [ "$(wc -l < resolv.conf)" = "0" ]; then
sleep 1
wait_for_resolvconf