postmarketos-base: disable swclock for all devices, enable it for nokia-n900 and samsung-i9070 (MR 1166)
This commit is contained in:
parent
11b60e838b
commit
0e502a5139
6 changed files with 19 additions and 8 deletions
|
@ -1,7 +1,7 @@
|
|||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
pkgname=device-nokia-n900
|
||||
pkgver=5
|
||||
pkgrel=8
|
||||
pkgrel=9
|
||||
pkgdesc="Nokia N900"
|
||||
url="https://postmarketos.org"
|
||||
arch="armv7"
|
||||
|
|
|
@ -24,3 +24,10 @@ if [ -z "$(grep /dev/rtc0 /etc/conf.d/hwclock)" ]; then
|
|||
fi
|
||||
|
||||
exit 0
|
||||
|
||||
# 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
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
pkgname=device-samsung-i9070
|
||||
pkgver=1
|
||||
pkgrel=30
|
||||
pkgrel=31
|
||||
pkgdesc="Samsung Galaxy S Advance"
|
||||
url="https://postmarketos.org"
|
||||
arch="armhf"
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
# 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
|
|
@ -1,6 +1,6 @@
|
|||
pkgname=postmarketos-base
|
||||
pkgver=3
|
||||
pkgrel=33
|
||||
pkgrel=34
|
||||
pkgdesc="Meta package for minimal postmarketOS base"
|
||||
url="https://postmarketos.org"
|
||||
arch="noarch"
|
||||
|
|
|
@ -8,7 +8,7 @@ setup-udev -n
|
|||
for service in devfs dmesg devmappings; do
|
||||
rc-update -q add $service sysinit
|
||||
done
|
||||
for service in hwclock modules sysctl hostname bootmisc swclock syslog; do
|
||||
for service in hwclock modules sysctl hostname bootmisc syslog; do
|
||||
rc-update -q add $service boot
|
||||
done
|
||||
for service in dbus haveged sshd swapfile wpa_supplicant chronyd local networkmanager; do
|
||||
|
@ -18,10 +18,6 @@ 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