|
@ -75,6 +75,20 @@ start_ntpd_instance() { |
|
|
emit "server $i iburst" |
|
|
emit "server $i iburst" |
|
|
done |
|
|
done |
|
|
|
|
|
|
|
|
|
|
|
if [ -d "/etc/ntpd.d" ]; then |
|
|
|
|
|
local entry |
|
|
|
|
|
for entry in "/etc/ntpd.d"/*.conf; do |
|
|
|
|
|
emit "includefile ${entry}\n" |
|
|
|
|
|
done |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
if [ -d "/tmp/ntpd.d" ]; then |
|
|
|
|
|
local entry |
|
|
|
|
|
for entry in "/tmp/ntpd.d"/*.conf; do |
|
|
|
|
|
emit "includefile ${entry}\n" |
|
|
|
|
|
done |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
mkdir -p /var/lib/ntp |
|
|
mkdir -p /var/lib/ntp |
|
|
chown -R ntp:ntp /var/lib/ntp |
|
|
chown -R ntp:ntp /var/lib/ntp |
|
|
|
|
|
|
|
|