{nokia-n900,samsung-i9070}: move swclock initial timestamp back to postmaketos-base.post-install (MR 1166)
This commit is contained in:
parent
859772a915
commit
b6ea0ba1de
3 changed files with 5 additions and 7 deletions
|
@ -25,8 +25,4 @@ if [ -z "$(grep /dev/rtc0 /etc/conf.d/hwclock)" ]; then
|
|||
sed -i 's/clock_args=\"/clock_args=\" -f \/dev\/rtc/' /etc/conf.d/hwclock
|
||||
fi
|
||||
|
||||
# Prime swclock with a reasonable date/time on first boot
|
||||
mkdir -p /run/openrc
|
||||
touch /run/openrc/shutdowntime
|
||||
|
||||
exit 0
|
||||
|
|
|
@ -3,6 +3,4 @@
|
|||
# Enable swclock OpenRC service
|
||||
rc-update -q add swclock boot
|
||||
|
||||
# Prime swclock with a reasonable date/time on first boot
|
||||
mkdir -p /run/openrc
|
||||
touch /run/openrc/shutdowntime
|
||||
exit 0
|
||||
|
|
|
@ -18,6 +18,10 @@ for service in mount-ro killprocs savecache; do
|
|||
rc-update -q add $service shutdown
|
||||
done
|
||||
|
||||
# Prime swclock with a reasonable date/time on first boot
|
||||
mkdir -p /run/openrc
|
||||
touch /run/openrc/shutdowntime
|
||||
|
||||
# Replace a config file from stock Alpine, unless apk reports that the user has
|
||||
# modified it (note that this does not allow properly updating these configs
|
||||
# when postmarketos-base gets updated yet, see issue pmaports#258).
|
||||
|
|
Loading…
Reference in a new issue