mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-12 12:15:52 +02:00
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@ipfire.org>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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!"
|
||||
|
||||
Reference in New Issue
Block a user