This should support both sysv and systemd:
http://ge.tt/7X1oFki
I put the actual behavior in a script in /usr/bin and call that from the init script and systemd service file. It pulls configuration from /etc/conf.d/swclock.
It's untested beyond my systemd Raspberry Pi. At least it gets me a more accurate clock until wifi kicks in.
Search Criteria
Package Details: swclock 1-2
Package Actions
| Package Base: | swclock |
|---|---|
| Description: | Sets the local clock from an given file |
| Upstream URL: | http://xmw.de |
| Category: | system |
| Licenses: | |
| Submitter: | xmw |
| Maintainer: | xmw |
| Last Packager: | None |
| Votes: | 1 |
| First Submitted: | 2012-06-22 15:02 |
| Last Updated: | 2012-07-18 22:52 |
Dependencies (0)
Required by (0)
Sources
- swclock
Latest Comments
Comment by Viaken
Comment by xmw
@Malstrond, i'd be happy to commit an working file, or orphan the pakage, but I'm unable and unwilling to develop such an file by myself. I don't use systemd on arch or any other linux distro.
Michael
Comment by Malstrond
Any chance of a systemd service file happening, now that it is the default init?
Comment by xmw
Should be fixed no, thanks.
Comment by Malstrond
There is a $ missing:
state=$(cat SWCLOCK_STATE)