packages: Use OpenWrt ntp vendor pool in default configs. (Cleaned whitespace too.)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@10189 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
182a270b1d
commit
83ccee9c38
@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=chrony
|
PKG_NAME:=chrony
|
||||||
PKG_VERSION:=1.21
|
PKG_VERSION:=1.21
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:= ftp://chrony.sunsite.dk/projects/chrony/ \
|
PKG_SOURCE_URL:= ftp://chrony.sunsite.dk/projects/chrony/ \
|
||||||
|
@ -2,5 +2,5 @@
|
|||||||
# Time servers and network(s) that may access the time service
|
# Time servers and network(s) that may access the time service
|
||||||
|
|
||||||
config ntpd
|
config ntpd
|
||||||
option TimeServers "0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org 3.pool.ntp.org"
|
option TimeServers "0.openwrt.pool.ntp.org 1.openwrt.pool.ntp.org 2.openwrt.pool.ntp.org 3.openwrt.pool.ntp.org"
|
||||||
option ClientAccessFrom "lan"
|
option ClientAccessFrom "lan"
|
||||||
|
@ -27,11 +27,8 @@ start() {
|
|||||||
done
|
done
|
||||||
echo burst 5/5
|
echo burst 5/5
|
||||||
) | chronyc > /dev/null 2>&1
|
) | chronyc > /dev/null 2>&1
|
||||||
|
|
||||||
# ... wait until a reference ID is found ...
|
# ... wait until a reference ID is found ...
|
||||||
while chronyc tracking | grep 'Reference ID.*0.0.0.0' >/dev/null ; do sleep 1; done
|
while chronyc tracking | grep 'Reference ID.*0.0.0.0' >/dev/null ; do sleep 1; done
|
||||||
|
|
||||||
|
|
||||||
# ... and finally, adjust the time in a single step
|
# ... and finally, adjust the time in a single step
|
||||||
# and allow clients to access the server
|
# and allow clients to access the server
|
||||||
(
|
(
|
||||||
@ -53,7 +50,6 @@ start() {
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
) | chronyc > /dev/null 2>&1
|
) | chronyc > /dev/null 2>&1
|
||||||
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=ntpclient
|
PKG_NAME:=ntpclient
|
||||||
PKG_VERSION:=2003_194
|
PKG_VERSION:=2003_194
|
||||||
PKG_RELEASE:=5
|
PKG_RELEASE:=6
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=http://doolittle.icarus.com/ntpclient/
|
PKG_SOURCE_URL:=http://doolittle.icarus.com/ntpclient/
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
config ntpclient
|
config ntpclient
|
||||||
option hostname 'pool.ntp.org'
|
option hostname '0.openwrt.pool.ntp.org'
|
||||||
option port '123'
|
option port '123'
|
||||||
option count '1'
|
option count '1'
|
||||||
|
|
||||||
config ntpclient
|
config ntpclient
|
||||||
option hostname 'ntp.ubuntu.com'
|
option hostname '1.openwrt.pool.ntp.org'
|
||||||
option port '123'
|
option port '123'
|
||||||
option count '1'
|
option count '1'
|
||||||
|
@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=ntp
|
PKG_NAME:=ntp
|
||||||
PKG_VERSION:=4.2.4p4
|
PKG_VERSION:=4.2.4p4
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=3
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/
|
PKG_SOURCE_URL:=http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/
|
||||||
|
@ -9,10 +9,10 @@ restrict 127.0.0.1
|
|||||||
|
|
||||||
driftfile /tmp/ntp.drift
|
driftfile /tmp/ntp.drift
|
||||||
|
|
||||||
server 0.pool.ntp.org iburst
|
server 0.openwrt.pool.ntp.org iburst
|
||||||
server 1.pool.ntp.org iburst
|
server 1.openwrt.pool.ntp.org iburst
|
||||||
server 2.pool.ntp.org iburst
|
server 2.openwrt.pool.ntp.org iburst
|
||||||
server 3.pool.ntp.org iburst
|
server 3.openwrt.pool.ntp.org iburst
|
||||||
|
|
||||||
|
|
||||||
# GPS(NMEA)+PPS
|
# GPS(NMEA)+PPS
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
START=60
|
START=60
|
||||||
|
|
||||||
STEP_SERVERS="pool.ntp.org pool.ntp.org pool.ntp.org"
|
STEP_SERVERS="0.openwrt.pool.ntp.org 1.openwrt.pool.ntp.org 2.openwrt.pool.ntp.org"
|
||||||
PIDFILE="/var/run/ntpd.pid"
|
PIDFILE="/var/run/ntpd.pid"
|
||||||
TIMEOUT="2" # in seconds
|
TIMEOUT="2" # in seconds
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=openntpd
|
PKG_NAME:=openntpd
|
||||||
PKG_VERSION:=3.9p1
|
PKG_VERSION:=3.9p1
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=ftp://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/ \
|
PKG_SOURCE_URL:=ftp://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/ \
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
# use a random selection of 8 public stratum 2 servers
|
# use a random selection of 8 public stratum 2 servers
|
||||||
# see http://twiki.ntp.org/bin/view/Servers/NTPPoolServers
|
# see http://twiki.ntp.org/bin/view/Servers/NTPPoolServers
|
||||||
servers pool.ntp.org
|
servers 0.openwrt.pool.ntp.org
|
||||||
|
servers 1.openwrt.pool.ntp.org
|
||||||
|
servers 2.openwrt.pool.ntp.org
|
||||||
|
servers 3.openwrt.pool.ntp.org
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
# use a random selection of 8 public stratum 2 servers
|
# use a random selection of 8 public stratum 2 servers
|
||||||
# see http://twiki.ntp.org/bin/view/Servers/NTPPoolServers
|
# see http://twiki.ntp.org/bin/view/Servers/NTPPoolServers
|
||||||
servers pool.ntp.org
|
servers 0.openwrt.pool.ntp.org
|
||||||
|
Loading…
x
Reference in New Issue
Block a user