aports/community/modemmanager/modemmanager.initd
Hugo Osvaldo Barrera 3d88e353b5 community/modemmanager: update initd to depend on polkit
Without polkit, modemmanager logs a warning at start-up:

  <wrn> [auth-provider] failed to create PolicyKit authority: 'Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: Failed to execute program org.freedesktop.PolicyKit1: No such file or directory'

Attempting to control modemmanager fails with an error:

  error: couldn't disable the modem: 'GDBus.Error:org.freedesktop.ModemManager1.Error.Core.Failed: PolicyKit authorization error: 'authority not found''

Add polkit as a dependency for the modemmanager service. The latter is
unusable if the former does not start first.
2025-05-04 23:17:18 +00:00

12 lines
192 B
Bash

#!/sbin/openrc-run
supervisor=supervise-daemon
command=/usr/sbin/ModemManager
command_args="${modemmanager_opts}"
description="ModemManager Daemon"
depend() {
need dbus
need polkit
}