pmaports/main/postmarketos-ui-plasma-mobile/postmarketos-ui-plasma-mobile.post-install
Bart Ribbers 64e90a02d2
main/postmarketos-ui-plasma-mobile: switch to modemmanager (MR 2730)
Upstream has switched from ofono to modemmanager since Plasma 5.23 and
Plasma Mobile Gear 21.12. Since the latter has just been released it's
now time to switch our images too.

The modemmanager service will be enabled to start on default and for
existing installations the .post-upgrade script will disable and stop
the existing ofono service and enable and start modemmanager instead.
2021-12-08 11:21:10 +01:00

23 lines
578 B
Bash

#!/bin/sh
rc-update add tinydm default
rc-update add urfkill default
rc-update add iio-sensor-proxy default
rc-update add bluetooth default
rc-update add hfd-service default
rc-update add networkmanager default
rc-update add modemmanager default
# Migrate from the old ofono setup
if rc-update del ofono default; then
rc-update del ofono-auto-enable default
rc-service stop ofono
rc-service stop ofono-auto-enable
rc-service start modemmanager
fi
tinydm-set-session -s /usr/share/wayland-sessions/plasma-mobile.desktop
glib-compile-schemas /usr/share/glib-2.0/schemas