From 4b75e9c92edffca7f3935dfe0c6500038df5c80a Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Sat, 29 Jun 2019 11:36:49 +0200 Subject: [PATCH] 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 --- src/initscripts/system/unbound | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)..." -- 2.39.5