{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
@ -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
|
sed -i 's/clock_args=\"/clock_args=\" -f \/dev\/rtc/' /etc/conf.d/hwclock
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Prime swclock with a reasonable date/time on first boot
|
|
||||||
mkdir -p /run/openrc
|
|
||||||
touch /run/openrc/shutdowntime
|
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -3,6 +3,4 @@
|
|||||||
# Enable swclock OpenRC service
|
# Enable swclock OpenRC service
|
||||||
rc-update -q add swclock boot
|
rc-update -q add swclock boot
|
||||||
|
|
||||||
# Prime swclock with a reasonable date/time on first boot
|
exit 0
|
||||||
mkdir -p /run/openrc
|
|
||||||
touch /run/openrc/shutdowntime
|
|
||||||
|
@ -18,6 +18,10 @@ for service in mount-ro killprocs savecache; do
|
|||||||
rc-update -q add $service shutdown
|
rc-update -q add $service shutdown
|
||||||
done
|
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
|
# 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
|
# modified it (note that this does not allow properly updating these configs
|
||||||
# when postmarketos-base gets updated yet, see issue pmaports#258).
|
# when postmarketos-base gets updated yet, see issue pmaports#258).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user