aboutsummaryrefslogtreecommitdiff
path: root/crontab
diff options
context:
space:
mode:
Diffstat (limited to 'crontab')
-rw-r--r--crontab/Makemodule.am2
-rw-r--r--crontab/swclock.in2
2 files changed, 4 insertions, 0 deletions
diff --git a/crontab/Makemodule.am b/crontab/Makemodule.am
new file mode 100644
index 0000000..2fe3424
--- /dev/null
+++ b/crontab/Makemodule.am
@@ -0,0 +1,2 @@
+crondir = @GCRONDIR@
+cron_DATA = crontab/swclock
diff --git a/crontab/swclock.in b/crontab/swclock.in
new file mode 100644
index 0000000..b5ae7af
--- /dev/null
+++ b/crontab/swclock.in
@@ -0,0 +1,2 @@
+5 */4 * * * @SCRIPTDIR@/setntpdate.sh > /dev/null
+@hourly date --utc +%%m%%d%%H%%M%%Y.%%S > @STATEFILESPATH@/swclock