summaryrefslogtreecommitdiff
path: root/net-misc/modemmanager
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/modemmanager')
-rw-r--r--net-misc/modemmanager/files/init.d.ModemManager11
-rw-r--r--net-misc/modemmanager/modemmanager-1.6.4-r1.ebuild (renamed from net-misc/modemmanager/modemmanager-1.6.4.ebuild)3
2 files changed, 14 insertions, 0 deletions
diff --git a/net-misc/modemmanager/files/init.d.ModemManager b/net-misc/modemmanager/files/init.d.ModemManager
new file mode 100644
index 00000000..b8f1345b
--- /dev/null
+++ b/net-misc/modemmanager/files/init.d.ModemManager
@@ -0,0 +1,11 @@
+#!/sbin/openrc-run
+
+description="ModemManager Daemon"
+pidfile="/run/ModemManager.pid"
+command="/usr/sbin/ModemManager"
+command_background="yes"
+
+depend() {
+ need dbus
+ before NetworkManager
+}
diff --git a/net-misc/modemmanager/modemmanager-1.6.4.ebuild b/net-misc/modemmanager/modemmanager-1.6.4-r1.ebuild
index 9c85e2ce..c674183e 100644
--- a/net-misc/modemmanager/modemmanager-1.6.4.ebuild
+++ b/net-misc/modemmanager/modemmanager-1.6.4-r1.ebuild
@@ -77,6 +77,9 @@ src_install() {
doins "${FILESDIR}"/01-org.freedesktop.ModemManager1.rules
fi
+ # create OpenRC service file
+ newinitd "${FILESDIR}/init.d.ModemManager" ModemManager
+
readme.gentoo_create_doc
}