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, master, updated. 2d646e983864558cbf50a0e2150b080a70976d8b
Date: Fri, 04 Nov 2016 18:37:28 +0000	[thread overview]
Message-ID: <20161104183734.9F9781081BA5@git01.ipfire.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 2397 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, master has been updated
       via  2d646e983864558cbf50a0e2150b080a70976d8b (commit)
      from  d4af85f252c5e1573f548377ea97928adf07c4d0 (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 2d646e983864558cbf50a0e2150b080a70976d8b
Author: Arne Fitzenreiter <arne_f(a)ipfire.org>
Date:   Fri Nov 4 19:31:07 2016 +0100

    ntp: init with hardcoded ip if dns not work
    
    DNSSec need the correct time to validate the zones so we need
    a workaround to init the time without dns.
    
    Signed-off-by: Arne Fitzenreiter <arne_f(a)ipfire.org>

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

Summary of changes:
 config/rootfiles/core/107/filelists/files | 1 +
 src/initscripts/init.d/ntp                | 8 ++++++++
 2 files changed, 9 insertions(+)

Difference in files:
diff --git a/config/rootfiles/core/107/filelists/files b/config/rootfiles/core/107/filelists/files
index 226f45b..94704cf 100644
--- a/config/rootfiles/core/107/filelists/files
+++ b/config/rootfiles/core/107/filelists/files
@@ -2,6 +2,7 @@ etc/system-release
 etc/issue
 etc/unbound/unbound.conf
 etc/rc.d/init.d/unbound
+etc/rc.d/init.d/ntp
 srv/web/ipfire/cgi-bin/logs.cgi/log.dat
 srv/web/ipfire/cgi-bin/traffic.cgi
 var/ipfire/langs
diff --git a/src/initscripts/init.d/ntp b/src/initscripts/init.d/ntp
index d411ba1..0793927 100644
--- a/src/initscripts/init.d/ntp
+++ b/src/initscripts/init.d/ntp
@@ -27,6 +27,14 @@ 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!"


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

                 reply	other threads:[~2016-11-04 18:37 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=20161104183734.9F9781081BA5@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