#!/sbin/runscript depend() { need hotplug } start() { ebegin "Starting hcid" start-stop-daemon --start --quiet --pidfile /var/run/hcid.pid \ --startas /usr/sbin/hcid eend $? if [ -x /usr/sbin/sdpd ]; then ebegin "Starting sdpd" start-stop-daemon --start --quiet --pidfile /var/run/sdpd.pid \ --startas /usr/sbin/sdpd eend $? fi # bind all rfcomm connectins from /etc/bluetooth/rfcomm.conf einfo "binding all RF connections" rfcomm bind all } stop() { ebegin "Stopping hcid" killall hcid eend $? if [ -x /usr/sbin/sdpd ]; then ebegin "Stopping sdpd" killall sdpd eend $? fi einfo "removing all RF connections" rfcomm release all }