11 lines
230 B
Plaintext
11 lines
230 B
Plaintext
|
#!/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:]]\+' ' '
|