diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-13 02:45:38 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-13 02:45:38 -0500 |
commit | 1e78a7b5661a3c11302066262cd250776c83c656 (patch) | |
tree | 6c604a584e6456c344bcf2acb49771edee5ad347 /user/bluez/rfcomm.initd | |
parent | ff4cd7d31f2a18039e2ce40960a595d7628f566a (diff) | |
download | packages-1e78a7b5661a3c11302066262cd250776c83c656.tar.gz packages-1e78a7b5661a3c11302066262cd250776c83c656.tar.bz2 packages-1e78a7b5661a3c11302066262cd250776c83c656.tar.xz packages-1e78a7b5661a3c11302066262cd250776c83c656.zip |
user/bluez: pull in, bump, fix up
Diffstat (limited to 'user/bluez/rfcomm.initd')
-rw-r--r-- | user/bluez/rfcomm.initd | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/user/bluez/rfcomm.initd b/user/bluez/rfcomm.initd new file mode 100644 index 000000000..26c2d6d9d --- /dev/null +++ b/user/bluez/rfcomm.initd @@ -0,0 +1,27 @@ +#!/sbin/openrc-run +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/files/rfcomm-init.d,v 1.1 2011/12/31 21:09:18 pacho Exp $ + +depend() { + after coldplug + need dbus localmount hostname +} + +start() { + if [ "${RFCOMM_ENABLE}" = "true" -a -x /usr/bin/rfcomm ]; then + if [ -f "${RFCOMM_CONFIG}" ]; then + ebegin "Starting rfcomm" + /usr/bin/rfcomm -f "${RFCOMM_CONFIG}" bind all + eend $? + else + ewarn "Not enabling rfcomm because RFCOMM_CONFIG does not exists" + fi + fi +} + +stop() { + ebegin "Shutting down rfcomm" + /usr/bin/rfcomm release all + eend $? +} |