From: Arne Fitzenreiter Date: Sat, 29 Jun 2019 09:36:49 +0000 (+0200) Subject: unbound: use nic carrier instead of /var/ipfire/red/active X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4b75e9c92edffca7f3935dfe0c6500038df5c80a;p=people%2Fstevee%2Fipfire-2.x.git unbound: use nic carrier instead of /var/ipfire/red/active This speed boot with static settings and no link and dhcp on intel nics if the mtu is changed by the dhcp lease because the nic loose the carrier and restart the dhcp action at mtu set. Signed-off-by: Arne Fitzenreiter --- diff --git a/src/initscripts/system/unbound b/src/initscripts/system/unbound index 34b3e06fda..ccb5fae219 100644 --- a/src/initscripts/system/unbound +++ b/src/initscripts/system/unbound @@ -48,7 +48,7 @@ config_header() { } update_forwarders() { - if [ "${USE_FORWARDERS}" = "1" -a -e "/var/ipfire/red/active" ]; then + if [ "${USE_FORWARDERS}" = "1" -a "$( /dev/null 2>&1 if [ "${?}" != "0" ]; then boot_mesg "DNS still not functioning... Trying to sync time with ntp.ipfire.org (81.3.27.46)..."