2026-10-25 13:10:37 +02:00
|
|
|
#!/sbin/openrc-run
|
|
|
|
|
|
|
|
|
|
supervisor=supervise-daemon
|
|
|
|
|
command=/usr/sbin/ModemManager
|
|
|
|
|
command_args="${modemmanager_opts}"
|
|
|
|
|
|
|
|
|
|
description="ModemManager Daemon"
|
|
|
|
|
|
|
|
|
|
depend() {
|
|
|
|
|
need dbus
|
|
|
|
|
use polkit
|
|
|
|
|
after msm8909-modem-wwan-port
|
|
|
|
|
after msm-modem-uim-selection
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
start_pre() {
|
|
|
|
|
killall -q ModemManager 2>/dev/null || true
|
2026-11-20 19:18:58 +02:00
|
|
|
if [ -r /usr/lib/libmm-wds-bind.so ]; then
|
|
|
|
|
export LD_PRELOAD="/usr/lib/libmm-wds-bind.so${LD_PRELOAD:+:$LD_PRELOAD}"
|
|
|
|
|
fi
|
2026-10-25 13:10:37 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
stop_post() {
|
|
|
|
|
killall -q ModemManager 2>/dev/null || true
|
|
|
|
|
}
|