pmaports/main/swclock-offset/swclock-offset-openrc.pre-deinstall
Jakob Hauser e6b0103b8c
main/swclock-offset: new package (MR 2191)
Some devices have a working but non-writable real-time clock (RTC).
This package contains two shell scripts: One writes the offset between
'hwclock' and 'swclock' to a file at shutdown, another one reads the
offset from the file at boot and sets the 'swclock'. This way the system
time in userspace is kept in present time.

[ci:skip-build] already built successfully in CI
2021-06-08 19:45:11 -07:00

11 lines
278 B
Bash

#!/bin/sh
# This script restores the original state.
# remove swclock-offset services
rc-update -q del swclock-offset-boot boot
rc-update -q del swclock-offset-shutdown shutdown
# replace service osclock by hwclock
rc-update -q del osclock boot
rc-update -q add hwclock boot