Commit df45ac1b authored by Michael Shigorin's avatar Michael Shigorin

initial ntp feature

This one has been partially implemented for regular builds but making it generally available seems much better.
parent 514ee63b
Эта фича конфигурирует службу NTP в качестве клиента
с целью предоставления точного времени в составе LiveCD;
для установленных систем рекомендуется применение модуля
alterator-datetime.
use/ntp: use/services
@$(call add_feature)
@$(call add,THE_PACKAGES,openntpd)
@$(call add,DEFAULT_SERVICES_ENABLE,ntpd)
use/ntp/client: use/ntp
@$(call add,NTP_SERVERS,pool.ntp.org)
@$(call xport,NTP_SERVERS)
#!/bin/sh
# basic NTP client configuration
. shell-config
CONFIG="/etc/ntpd.conf"
[ -f "$CONFIG" ] || exit 0
[ -n "$GLOBAL_NTP_SERVERS" ] || exit 0
shell_config_set "$CONFIG" 'servers' "$GLOBAL_NTP_SERVERS" '[[:space:]]\+' ' '
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment