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:
parent
b8985b8ea8
commit
8b127c6367
1 changed files with 7 additions and 0 deletions
|
@ -1,8 +1,15 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
uci -q batch <<-EOF >/dev/null
|
uci -q batch <<-EOF >/dev/null
|
||||||
set system.@system[-1].ttylogin=1
|
set system.@system[-1].ttylogin=1
|
||||||
|
set system.ntp=timeserver
|
||||||
set system.ntp.use_dhcp='0'
|
set system.ntp.use_dhcp='0'
|
||||||
set system.ntp.enable_server='1'
|
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
|
commit system
|
||||||
set rpcd.@rpcd[0].timeout=120
|
set rpcd.@rpcd[0].timeout=120
|
||||||
commit rpcd
|
commit rpcd
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue