Skip to content
Snippets Groups Projects
Commit 6e44f47a authored by Piotr Dymacz's avatar Piotr Dymacz
Browse files

sysntpd: restore support for peer-less (standalone) mode


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:
1527f96c

Signed-off-by: default avatarPiotr Dymacz <pepe2k@gmail.com>
Acked-by: default avatarJo-Philipp Wich <jo@mein.io>
parent e1f3cf7e
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,7 @@ start_service() {
[ $use_dhcp = 1 ] && get_dhcp_ntp_servers "$dhcp_interface"
[ -z "$server" ] && return
[ -z "$server" -a "$enable_server" = "0" ] && return
procd_open_instance
procd_set_param command "$PROG" -n -N
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment