aboutsummaryrefslogtreecommitdiffstats
path: root/packages/torouter-prep
diff options
context:
space:
mode:
authorJacob Appelbaum <jacob@appelbaum.net>2011-08-19 14:31:45 +0200
committerJacob Appelbaum <jacob@appelbaum.net>2011-08-19 14:31:45 +0200
commit1ce6ae2823cd10c38340da21962a48f90879bde0 (patch)
tree99a7c171acefabb495feeb5369e4868b12623c29 /packages/torouter-prep
parent6d5f6e5e68fbb4cb017224f273ae76dbe104f3cb (diff)
downloadtorouter-1ce6ae2823cd10c38340da21962a48f90879bde0.tar.gz
torouter-1ce6ae2823cd10c38340da21962a48f90879bde0.zip
sync time on first startup and all subsequent startups
Diffstat (limited to 'packages/torouter-prep')
-rw-r--r--packages/torouter-prep/configs/openntpd-default6
-rw-r--r--packages/torouter-prep/src/torouter_config.sh1
2 files changed, 7 insertions, 0 deletions
diff --git a/packages/torouter-prep/configs/openntpd-default b/packages/torouter-prep/configs/openntpd-default
new file mode 100644
index 0000000..318e7bd
--- /dev/null
+++ b/packages/torouter-prep/configs/openntpd-default
@@ -0,0 +1,6 @@
+# /etc/default/openntpd
+
+# Append '-s' to set the system time when starting in case the offset
+# between the local clock and the servers is more than 180 seconds.
+# For other options, see man ntpd(8).
+DAEMON_OPTS="-f /etc/openntpd/ntpd.conf -s"
diff --git a/packages/torouter-prep/src/torouter_config.sh b/packages/torouter-prep/src/torouter_config.sh
index 7d78f04..e27c81e 100644
--- a/packages/torouter-prep/src/torouter_config.sh
+++ b/packages/torouter-prep/src/torouter_config.sh
@@ -93,6 +93,7 @@ cp $config_dir/dnsmasq.conf /etc/dnsmasq.conf
# Configure ntp
cp $config_dir/ntp.conf /etc/ntp.conf
+cp $config_dir/openntpd-default /etc/default/openntpd
# XXX We should configure ufw here
# XXX We should configure denyhosts