#!/sbin/runscript # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ depend() { need hcid } start() { ebegin "Starting Bluetooth" if [ -f "${RFCOMM_CONFIG}" ]; then ebegin " Starting rfcomm" /usr/bin/rfcomm -f ${RFCOMM_CONFIG} bind all eend $? else eerror "Not enabling rfcomm because RFCOMM_CONFIG does not exists" fi } stop() { ebegin "Stopping rfcomm" /usr/bin/rfcomm release all eend $? }