diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-12-28 21:47:46 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-12-28 21:47:46 +0000 |
commit | add6c9457f027e3c46d70f05c316008bc2782757 (patch) | |
tree | b1bd333632c394c82be64af33bd19e7572ea8a18 /net-misc | |
parent | 749587c87b36074e4756bae8acd86a926aa5aa6e (diff) |
net-misc/modemmanager : add openrc service file
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/modemmanager/files/init.d.ModemManager | 11 | ||||
-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 } |