How do I append "iburst" at the end of "time.example.com?"
On Wednesday, March 12, 2014 3:35:09 PM UTC+1, kbrede wrote:How do I append "iburst" at the end of "time.example.com?"AFAICT in augtool this works:set /files/etc/ntp.conf/server[1] "time.example.com iburst"
This is an old thread, however I was desperate to find an answer for the same question and would like to share what I found out
Am Donnerstag, 13. März 2014 11:04:36 UTC+1 schrieb zerozer...@gmail.com:On Wednesday, March 12, 2014 3:35:09 PM UTC+1, kbrede wrote:How do I append "iburst" at the end of "time.example.com?"AFAICT in augtool this works:set /files/etc/ntp.conf/server[1] "time.example.com iburst"
NOPE, this will not work. Assuming you are in the augtool shell:
augtool> match /files/etc/ntp.conf/server
/files/etc/ntp.conf/server[1] = 3.ch.pool.ntp.org
/files/etc/ntp.conf/server[2] = 0.ch.pool.ntp.org
/files/etc/ntp.conf/server[3] = 2.ch.pool.ntp.org
/files/etc/ntp.conf/server[4] = 1.ch.pool.ntp.org
augtool> match /files/etc/ntp.conf/*[iburst]
/files/etc/ntp.conf/server[1] = 3.ch.pool.ntp.org
/files/etc/ntp.conf/server[2] = 0.ch.pool.ntp.org
/files/etc/ntp.conf/server[3] = 2.ch.pool.ntp.org
augtool> set /files/etc/ntp.conf/server[4]/iburst
augtool> match /files/etc/ntp.conf/*[iburst]
/files/etc/ntp.conf/server[1] = 3.ch.pool.ntp.org
/files/etc/ntp.conf/server[2] = 0.ch.pool.ntp.org
/files/etc/ntp.conf/server[3] = 2.ch.pool.ntp.org
/files/etc/ntp.conf/server[4] = 1.ch.pool.ntp.org