busybox: sysntpd: add trigger to reload server
authorAlexey Dobrovolsky <dobrovolskiy.alexey@gmail.com>
Sat, 5 Jun 2021 23:25:02 +0000 (02:25 +0300)
committerBaptiste Jonglez <git@bitsofnetworks.org>
Sun, 27 Jun 2021 21:54:06 +0000 (23:54 +0200)
commit88114f617ae7bffe13d19d7b9575659a3d3cd9b6
tree13a216f7fb6768a9c91d060ce0625934a66a17bf
parent51b61fd57059adeb10a3977e00772af2b76dc40b
busybox: sysntpd: add trigger to reload server

sysntpd server becomes unavailable if the index of the bound
interface changes. So let's add an interface trigger to reload sysntpd.

This patch also adds the ability for the sysntpd script to handle
uci interface name from configuration.

Fixes: 4da60500ebd2 ("busybox: sysntpd: option to bind server to iface")
Signed-off-by: Alexey Dobrovolsky <dobrovolskiy.alexey@gmail.com>
Reviewed-by: Philip Prindeville <philipp@redfish-solutions.com>
package/utils/busybox/files/sysntpd