1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Force ntp client

This commit is contained in:
Ycarus (Yannick Chabanois) 2022-04-11 20:44:13 +02:00
parent b8985b8ea8
commit 8b127c6367

View file

@ -1,8 +1,15 @@
#!/bin/sh
uci -q batch <<-EOF >/dev/null
set system.@system[-1].ttylogin=1
set system.ntp=timeserver
set system.ntp.use_dhcp='0'
set system.ntp.enable_server='1'
set system.ntp.enabled='1'
del system.ntp.server
add_list system.ntp.server='0.pool.ntp.org'
add_list system.ntp.server='1.pool.ntp.org'
add_list system.ntp.server='2.pool.ntp.org'
add_list system.ntp.server='3.pool.ntp.org'
commit system
set rpcd.@rpcd[0].timeout=120
commit rpcd