Hi GL-Inet guys & gals,
In the process of working through this Chrony advice, I’ve discovered that these changes are overwritten on reboot in 4.9b5.
REPRO:
-
ssh gateway
-
uci show chrony
chrony.@server[0]=server
chrony.@server[0].iburst='yes'
chrony.@server[0].disabled='no'
chrony.@allow[0]=allow
chrony.@allow[0].interface='lan'
chrony.@makestep[0]=makestep
chrony.@makestep[0].threshold='1.0'
chrony.@makestep[0].limit='3'
chrony.@nts[0]=nts
chrony.@nts[0].rtccheck='yes'
chrony.@nts[0].systemcerts='yes'
chrony.@pool[0]=pool
chrony.@pool[0].maxpoll='12'
chrony.@pool[0].iburst='yes'
chrony.@pool[0].nts='yes'
chrony.@pool[0].hostname='time.cloudflare.com'
chrony.time_nl=server
chrony.time_nl.hostname='ntppool1.time.nl'
chrony.time_nl.iburst='yes'
chrony.time_nl.nts='yes'
chrony.netnod=server
chrony.netnod.hostname='nts.netnod.se'
chrony.netnod.iburst='yes'
chrony.netnod.nts='yes'
chrony.ptb=server
chrony.ptb.hostname='ptbtime1.ptb.de'
chrony.ptb.iburst='yes'
chrony.ptb.nts='yes'
chrony.dfm=server
chrony.dfm.hostname='time.dfm.dk'
chrony.dfm.iburst='yes'
chrony.dfm.nts='yes'
chrony.cifelli=server
chrony.cifelli.hostname='time.cifelli.xyz'
chrony.cifelli.iburst='yes'
chrony.cifelli.nts='yes' -
uci -q delete chrony.@pool[0]
uci -q delete chrony.time_nl
uci -q delete chrony.netnod
uci -q delete chrony.ptb
uci -q delete chrony.dfm
uci -q delete chrony.cifelliuci add chrony pool
uci set chrony.@pool[-1].maxpoll='12'
uci set chrony.@pool[-1].iburst='yes'
uci set chrony.@pool[-1].nts='yes'
uci set chrony.@pool[-1].hostname='2.us.pool.ntp.org'
uci set chrony.@makestep[0]='makestep'
uci set chrony.@makestep[0].threshold='1.0'
uci set chrony.@makestep[0].limit='3' -
uci commit chrony
-
/etc/init.d/chronyd restart
-
uci show chrony
chrony.@server[0]=server
chrony.@server[0].iburst='yes'
chrony.@server[0].disabled='no'
chrony.@allow[0]=allow
chrony.@allow[0].interface='lan'
chrony.@makestep[0]=makestep
chrony.@makestep[0].threshold='1.0'
chrony.@makestep[0].limit='3'
chrony.@nts[0]=nts
chrony.@nts[0].rtccheck='yes'
chrony.@nts[0].systemcerts='yes'
chrony.@pool[0]=pool
chrony.@pool[0].maxpoll='12'
chrony.@pool[0].iburst='yes'
chrony.@pool[0].nts='yes'
chrony.@pool[0].hostname='2.us.pool.ntp.org' -
cat /etc/config/chrony
config server
option iburst 'yes'
option disabled 'no'config allow
option interface 'lan'config makestep
option threshold '1.0'
option limit '3'config nts
option rtccheck 'yes'
option systemcerts 'yes'config pool
option maxpoll '12'
option iburst 'yes'
option nts 'yes'
option hostname '2.us.pool.ntp.org' -
-
ssh gateway
-
uci show chrony
<as in #2> -
cat /etc/config/chrony
config server
option iburst 'yes'
option disabled 'no'config allow
option interface 'lan'config makestep
option threshold '1.0'
option limit '3'config nts
option rtccheck 'yes'
option systemcerts 'yes'config pool
option maxpoll '12'
option iburst 'yes'
option nts 'yes'
option hostname 'time.cloudflare.com'config server 'time_nl'
option hostname 'ntppool1.time.nl'
option iburst 'yes'
option nts 'yes'config server 'netnod'
option hostname 'nts.netnod.se'
option iburst 'yes'
option nts 'yes'
config server 'ptb'
option hostname 'ptbtime1.ptb.de'
option iburst 'yes'
option nts 'yes'config server 'dfm'
option hostname 'time.dfm.dk'
option iburst 'yes'
option nts 'yes'config server 'cifelli'
option hostname 'time.cifelli.xyz'
option iburst 'yes'
option nts 'yes'