aboutsummaryrefslogtreecommitdiffstats
path: root/package/utils/busybox/files/sysntpd
Commit message (Collapse)AuthorAgeFilesLines
* sysntpd: restore support for peer-less (standalone) modePiotr Dymacz2017-04-021-1/+1
| | | | | | | | | | | | | | | | | ntpd from Busybox supports peer-less (standalone) mode when it's started with option -l and without any peer provided with option -p. In this mode ntpd uses local time as reference and acts as stratum 1 server. This mode can be used in isolated networks, where Internet access and/or other NTP server/s are not available, but the device has some other way of getting correct time, like e.g. GPS (ugps supports setting local time by default). Support for this mode was incorrectly disabled/removed in: 1527f96ca6e196fa17c96fdb3ae520158fa5943f Signed-off-by: Piotr Dymacz <pepe2k@gmail.com> Acked-by: Jo-Philipp Wich <jo@mein.io>
* sysntpd: remove procd_open_trigger/procd_close_trigger callsFelix Fietkau2016-07-291-3/+0
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* busybox: run sysntpd at higher priorityMaxim Storchak2016-05-301-1/+1
| | | | | | | When a router is under load ntpd would have better chance to accurately maintain system time. Signed-off-by: Maxim Storchak <m.storchak@gmail.com>
* busybox: sysntpd - Support for NTP servers received via DHCP(v6)Hans Dedecker2016-05-241-5/+52
| | | | | | | | | | The busybox ntpd utility currently uses ntp servers specified in uci. This patch allows the ntpd utility to use NTP servers received via DHCP(v6) Following uci parameters have been added: use_dhcp : enables NTP server config via DHCP(v6) dhcp_interface : use NTP servers received only on the specified DHCP(v6) interfaces; if empty all interfaces are considered Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* ntp: add hotplug class for ntp-eventsSteven Barth2014-11-281-0/+2
| | | | | | | | Based on a patch by Luiz Angelo Daros de Luca Signed-off-by: Steven Barth <steven@midlink.org> SVN-Revision: 43421
* package/*: remove useless explicit set of function returncodeJohn Crispin2014-08-251-1/+0
| | | | | | | | | | | | | | | | | | | | | | somebody started to set a function returncode in the validation stuff and everybody copies it, e.g. myfunction() { fire_command return $? } a function automatically returns with the last returncode, so we can safely remove the command 'return $?'. reference: http://tldp.org/LDP/abs/html/exit-status.html "The last command executed in the function or script determines the exit status." Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com> SVN-Revision: 42278
* busybox: fix validation in sysntpd init scriptLuka Perkov2014-06-301-0/+1
| | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 41415
* busybox: use ntp enabled config optionJohn Crispin2014-06-271-2/+4
| | | | | | | | | Even if enabled option is missing from ntp configuration we are still keeping default behavior. Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 41355
* busybox: fix processing of multiple NTP servers in the config (#15294)Felix Fietkau2014-03-171-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 39935
* busybox: do not abort sysntpd init if enable_server is unset, that variable ↵Jo-Philipp Wich2013-11-281-1/+1
| | | | | | just controls the server part for relaying NTP SVN-Revision: 38936
* procd: fixup 2 wrong option typesJohn Crispin2013-11-131-1/+1
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 38789
* procd: convert services to the new validation apiJohn Crispin2013-11-131-14/+16
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 38787
* fix various init scriptsLuka Perkov2013-09-231-2/+1
| | | | | | | | | | | | Changes include: * removing unused variables * replacing spaces with tabs where appropriate * more consistency with variable declarations Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 38142
* procd: convert various packages to procd style init.d scriptsJohn Crispin2013-09-171-0/+6
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 38023
* busybox: rename ntp init script back to sysntpd (#13920)Jo-Philipp Wich2013-08-041-0/+31
Renaming the init script to ntp broke LuCI time sync functionality and collides with other ntp packages SVN-Revision: 37681