e6b0103b8c
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
11 lines
278 B
Bash
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
|