diff options
author | freaj <freaj@riseup.net> | 2015-03-30 11:08:25 +0200 |
---|---|---|
committer | freaj <freaj@riseup.net> | 2015-03-30 11:08:25 +0200 |
commit | cec37e643f4889b4b8652bdfce886b1e5e81f2bd (patch) | |
tree | c992d8325923324f5d318f57b4c05dd5fe494988 /pcr/openrc-misc/connman.initd2 | |
parent | 7385c6143c1b587bca68deade6e5989d11879767 (diff) | |
download | abslibre-cec37e643f4889b4b8652bdfce886b1e5e81f2bd.tar.gz abslibre-cec37e643f4889b4b8652bdfce886b1e5e81f2bd.tar.bz2 abslibre-cec37e643f4889b4b8652bdfce886b1e5e81f2bd.zip |
openrc-misc: add new package to [pcr]
Diffstat (limited to 'pcr/openrc-misc/connman.initd2')
-rw-r--r-- | pcr/openrc-misc/connman.initd2 | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/pcr/openrc-misc/connman.initd2 b/pcr/openrc-misc/connman.initd2 new file mode 100644 index 000000000..6525df40f --- /dev/null +++ b/pcr/openrc-misc/connman.initd2 @@ -0,0 +1,23 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Purpose License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/connman/files/connman.initd2,v 1.1 2013/03/14 12:51:31 chainsaw Exp $ + +depend() { + need dbus + provide net +} + +start() { + ebegin "Starting Connection Manager" + start-stop-daemon --start --quiet --exec /usr/sbin/connmand -- ${CONNMAN_OPTS} + eend $? +} + +stop() { + ebegin "Stopping Connection Manager" + start-stop-daemon --stop --quiet --exec /usr/sbin/connmand + eend $? +} + +# vim: set ft=gentoo-init-d ts=3 sw=3 et: |