Hi,
When I do UCI ntpclient configuration using code configuration, configuration file /etc/config/ntpclient still keep old configuration ( i.e. not clean the old configuration ). Please see below:
root@freewave-ib:/root# uci show ntpclient
ntpclient.@ntpserver[0]=ntpserver
ntpclient.@ntpserver[0].port='215'
ntpclient.@ntpserver[0].interface='0.0.0.0'
ntpclient.@ntpserver[0].hostname=' 4.3.2.1 12.13.14.15 9.0.9.0'
ntpclient.@ntpserver[1]=ntpserver
ntpclient.@ntpserver[1].port='123'
ntpclient.@ntpserver[1].hostname=' 222.222.222.222 0.0.0.1 5.5.5.5'
ntpclient.@ntpserver[2]=ntpserver
ntpclient.@ntpserver[2].port='123'
ntpclient.@ntpserver[2].hostname=' 0.0.0.1 5.5.5.5'
ntpclient.@ntpserver[3]=ntpserver
ntpclient.@ntpserver[3].port='123'
ntpclient.@ntpserver[3].hostname=' 5.5.5.5'
ntpclient.@ntpdrift[0]=ntpdrift
ntpclient.@ntpdrift[0].freq='0'
This doesn't happen to UCI network configuration by using code. ( UCI ntpclient code configuration is very
similar to UCI network code configuration).
Is there any solution on this?
Thanks,
Scott