File: fake-hwclock.cron.hourly

package info (click to toggle)
fake-hwclock 0.14
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 108 kB
  • sloc: sh: 84; makefile: 7
file content (11 lines) | stat: -rwxr-xr-x 283 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
#
# Simple cron script - save the current clock periodically in case of
# a power failure or other crash

# Systems running systemd use the systemd timer unit.
[ -d /run/systemd/system ] && exit 0

if (command -v fake-hwclock >/dev/null 2>&1) ; then
  fake-hwclock save
fi