public inbox for ipfire-scm@lists.ipfire.org
 help / color / mirror / Atom feed
From: git@ipfire.org
To: ipfire-scm@lists.ipfire.org
Subject: [git.ipfire.org] IPFire 2.x development tree branch, next, updated. 05478072cd8faee443ceadb1ebfac11057bd6dc1
Date: Tue, 15 Aug 2017 19:28:48 +0100	[thread overview]
Message-ID: <20170815182848.D29F51081DE1@git01.ipfire.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 3114 bytes --]

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "IPFire 2.x development tree".

The branch, next has been updated
       via  05478072cd8faee443ceadb1ebfac11057bd6dc1 (commit)
      from  874eabd6f57f8ad894b237d1a1fc029096070163 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 05478072cd8faee443ceadb1ebfac11057bd6dc1
Author: Arne Fitzenreiter <arne_f(a)ipfire.org>
Date:   Tue Aug 15 20:20:16 2017 +0200

    unbound/ntp: move not working DNS fallback from ntp to unbound initskript
    
    the ntp initskript will only run at first connection try. If this fails
    and the connection can established later DNS will not work if the clock
    is too far away.
    
    Signed-off-by: Arne Fitzenreiter <arne_f(a)ipfire.org>

-----------------------------------------------------------------------

Summary of changes:
 config/rootfiles/core/113/filelists/files |  2 ++
 src/initscripts/system/ntp                |  8 --------
 src/initscripts/system/unbound            | 10 ++++++++++
 3 files changed, 12 insertions(+), 8 deletions(-)

Difference in files:
diff --git a/config/rootfiles/core/113/filelists/files b/config/rootfiles/core/113/filelists/files
index 168c7d1..ceed6de 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 0793927..d411ba1 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 7437d93..3002f48 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)


hooks/post-receive
--
IPFire 2.x development tree

                 reply	other threads:[~2017-08-15 18:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170815182848.D29F51081DE1@git01.ipfire.org \
    --to=git@ipfire.org \
    --cc=ipfire-scm@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox