diff --git a/config/rootfiles/core/113/filelists/files b/config/rootfiles/core/113/filelists/files index 168c7d188..ceed6de2d 100644 --- a/config/rootfiles/core/113/filelists/files +++ b/config/rootfiles/core/113/filelists/files @@ -1,3 +1,5 @@ etc/system-release etc/issue +etc/rc.d/init.d/ntp +etc/rc.d/init.d/unbound var/ipfire/langs diff --git a/src/initscripts/system/ntp b/src/initscripts/system/ntp index 079392790..d411ba18d 100644 --- a/src/initscripts/system/ntp +++ b/src/initscripts/system/ntp @@ -27,14 +27,6 @@ case "$1" in fi if [ -e /var/ipfire/red/active ]; then boot_mesg "" - - host ping.ipfire.org > /dev/null 2>&1 - if [ "${?}" != "0" ]; then - boot_mesg "DNS not work ... init with ntp.ipfire.org at 81.3.27.46 ..." - loadproc /usr/local/bin/settime 81.3.27.46 - boot_mesg "Setting time on boot..." - fi - loadproc /usr/local/bin/settime $(cat /var/ipfire/time/settime.conf) else boot_mesg " ERROR! Not online!" diff --git a/src/initscripts/system/unbound b/src/initscripts/system/unbound index 7437d93b8..3002f4800 100644 --- a/src/initscripts/system/unbound +++ b/src/initscripts/system/unbound @@ -484,6 +484,16 @@ case "$1" in # Update hosts update_hosts + + # If DNS still not work try to init ntp with + # hardcoded ntp.ipfire.org (81.3.27.46) + if [ -e /var/ipfire/red/active ]; then + host 0.ipfire.pool.ntp.org > /dev/null 2>&1 + if [ "${?}" != "0" ]; then + boot_mesg "DNS still not work ... init time with ntp.ipfire.org at 81.3.27.46 ..." + loadproc /usr/local/bin/settime 81.3.27.46 + fi + fi ;; stop)