From ac7ef4932deb6e7da709cf20d342602806f0c271 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 10 Oct 2011 10:19:32 +0200 Subject: [PATCH] systemd-units: added a hwclock service to sync system time from hwclock. --- srcpkgs/systemd-units/files/hwclock.service | 13 +++++++++++++ srcpkgs/systemd-units/template | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/systemd-units/files/hwclock.service diff --git a/srcpkgs/systemd-units/files/hwclock.service b/srcpkgs/systemd-units/files/hwclock.service new file mode 100644 index 00000000000..d8c4a5d5d1a --- /dev/null +++ b/srcpkgs/systemd-units/files/hwclock.service @@ -0,0 +1,13 @@ +[Unit] +Description=Syncs system time from the Hardware Clock +DefaultDependencies=no +Before=basic.target + +[Service] +Type=oneshot +RemainAfterExit=yes +ExecStartPre=/sbin/modprobe -q rtc +ExecStart=/sbin/hwclock -s + +[Install] +WantedBy=basic.target diff --git a/srcpkgs/systemd-units/template b/srcpkgs/systemd-units/template index b863e57006c..9ca272091ce 100644 --- a/srcpkgs/systemd-units/template +++ b/srcpkgs/systemd-units/template @@ -1,6 +1,6 @@ # Template file for 'systemd-units' pkgname=systemd-units -version=0.3 +version=0.4 build_style=custom-install short_desc="Void GNU/Linux systemd units" maintainer="Juan RP "