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>
Wed, 30 Jun 2021 07:24:15 +0000 (09:24 +0200)
commit9fa925362f285614e90c2d7a286efd9d3d41db45
tree632b7ef4a27d06822ec09f396926165cb4aff2da
parenta75928d1259e52e52b1991a4dc39df61ba3c9206
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>
(cherry picked from commit 88114f617ae7bffe13d19d7b9575659a3d3cd9b6)
package/utils/busybox/files/sysntpd