df45ac1bca
This one has been partially implemented for regular builds but making it generally available seems much better.
11 lines
230 B
Bash
Executable File
11 lines
230 B
Bash
Executable File
#!/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:]]\+' ' '
|