diff options
Diffstat (limited to 'scripts/os/freebsd/20-ntp')
-rw-r--r-- | scripts/os/freebsd/20-ntp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/os/freebsd/20-ntp b/scripts/os/freebsd/20-ntp new file mode 100644 index 0000000..888bab4 --- /dev/null +++ b/scripts/os/freebsd/20-ntp @@ -0,0 +1,14 @@ +#!/bin/sh + +# Jails don't need NTP. +if [ "$BOXCONF_VIRTUALIZATION_TYPE" = jail ]; then + return +fi + +install_template -m 0644 /etc/ntp.conf + +sysrc -v \ + ntpd_enable=YES \ + ntpd_sync_on_start=YES + +service ntpd restart |