[OpenWrt-Devel] [PATCH] busybox: ntpd - Add support for NTP servers received from DHCP
Amine Aouled Hamed
amine.ahd at gmail.com
Mon Jan 25 11:04:48 EST 2016
My bad, could this be deleted please? Thanks
On Mon, Jan 25, 2016 at 5:03 PM, amine ahd <amine.ahd at gmail.com> wrote:
> ---
> package/utils/busybox/files/sysntpd | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/package/utils/busybox/files/sysntpd
> b/package/utils/busybox/files/sysntpd
> index f73bb83..2e7a47d 100755
> --- a/package/utils/busybox/files/sysntpd
> +++ b/package/utils/busybox/files/sysntpd
> @@ -15,6 +15,7 @@ validate_ntp_section() {
> start_service() {
> local server enabled enable_server peer
>
> + logger -t sysntpd "starting ntpds"
> validate_ntp_section ntp || {
> echo "validation failed"
> return 1
> @@ -37,6 +38,13 @@ start_service() {
>
> service_triggers()
> {
> + local script=$(readlink "$initscript")
> + local name=$(basename ${script:-$initscript})
> +
> + procd_open_trigger
> + procd_add_raw_trigger "interface.*" 2000 /etc/init.d/$name reload
> + procd_close_trigger
> +
> procd_add_reload_trigger "system"
> procd_add_validation validate_ntp_section
> }
> --
> 2.5.0
>
>
--
Amine Hamed | Software Engineer
Ocedo GmbH | Hirschstrasse 7 | 76133 Karlsruhe | Germany
Email ahamed at ocedo.com
<ahamed at ocedo.com>
REGISTERED OFFICE: KARLSRUHE | DISTRICT COURT: MANNHEIM | REGISTER NUMBER:
HRB 717873
MANAGING DIRECTOR: MARKUS HENNIG|JAN HICHERT
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20160125/aecfee52/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list