nokia-n900: fix post-install script (MR 1166)

This commit is contained in:
Federico Amedeo Izzo 2020-04-19 15:15:54 +02:00 committed by Bart Ribbers
parent 3b54062859
commit fd12790ead
No known key found for this signature in database
GPG key ID: 699D16185DAFAE61

View file

@ -11,6 +11,8 @@ rc-update add acpid default
rc-update add hwdrivers boot rc-update add hwdrivers boot
# Enable ofono # Enable ofono
rc-update add ofono default rc-update add ofono default
# Enable swclock
rc-update -q add swclock boot
# Load nokia-modem module on boot # Load nokia-modem module on boot
NMC=/etc/modules-load.d/nokia-modem.conf NMC=/etc/modules-load.d/nokia-modem.conf
@ -23,11 +25,6 @@ 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
exit 0
# Enable swclock OpenRC service
rc-update -q add swclock boot
# Prime swclock with a reasonable date/time on first boot # Prime swclock with a reasonable date/time on first boot
mkdir -p /run/openrc mkdir -p /run/openrc
touch /run/openrc/shutdowntime touch /run/openrc/shutdowntime