fp6-img/aports/device/fp6-no-suspend/APKBUILD
Jorijn van der Graaf 05cd1084b7 image completeness: fp6-no-suspend + imsd boot enablement
Two device-critical pieces previously applied only by the dev restore
script: masked sleep targets (idle-suspend resets the WCN combo firmware
and kills wifi ~40min - a device defect, not personalization) and imsd
enabled at boot, gated on /etc/imsd.env existing so unconfigured systems
don't boot a failing unit. A stranger now needs exactly: flash, wifi via
UI, write imsd.env, restart imsd.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-08 23:46:01 +02:00

21 lines
717 B
Text

# The FP6's wifi and BT share the WCN combo chip; systemd idle-suspend (and
# BT-off) resets the shared firmware and kills wifi for ~40 minutes. Mask
# the sleep targets declaratively - shipped as /dev/null symlinks, the same
# state 'systemctl mask' produces.
maintainer="Jorijn van der Graaf <jorijnvdgraaf@catcrafts.net>"
pkgname=fp6-no-suspend
pkgver=1
pkgrel=0
pkgdesc="Mask systemd sleep targets (suspend kills wifi on the FP6)"
url="https://forgejo.catcrafts.net/Catcrafts/fp6-img"
arch="noarch"
license="MIT"
options="!check"
package() {
for t in sleep suspend hibernate hybrid-sleep; do
mkdir -p "$pkgdir/etc/systemd/system"
ln -s /dev/null "$pkgdir/etc/systemd/system/$t.target"
done
}
sha512sums=""