{nokia-n900,samsung-i9070}: move swclock initial timestamp back to postmaketos-base.post-install (MR 1166)

This commit is contained in:
Federico Amedeo Izzo 2020-05-10 18:15:42 +02:00 committed by Bart Ribbers
parent 859772a915
commit b6ea0ba1de
No known key found for this signature in database
GPG key ID: 699D16185DAFAE61
3 changed files with 5 additions and 7 deletions

View file

@ -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

View file

@ -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

View file

@ -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).