# bluez - bluetooth daemon description "bluetooth daemon" start on started dbus stop on stopping dbus env RFCOMM_CONF=/etc/bluetooth/rfcomm.conf expect fork respawn exec /usr/sbin/bluetoothd post-start script [ "$VERBOSE" = no ] && redirect='>/dev/null 2>&1' || redirect= # apply patchram if ! pgrep brcm_patchram_plus >/dev/null 2>&1; then rfkill unblock bluetooth chmod 0660 /sys/class/rfkill/rfkill0/state chmod 0660 /sys/class/rfkill/rfkill0/type chgrp dialout /sys/class/rfkill/rfkill0/state chgrp dialout /sys/class/rfkill/rfkill0/type brcm_patchram_plus --enable_hci --scopcm=0,2,0,0,0,0,0,0,0,0 \ --baudrate 3000000 --use_baudrate_for_download \ --patchram /lib/firmware/bcm4330.hcd --no2bytes \ --enable_lpm --tosleep=50000 /dev/ttyHS2 $redirect || : fi # start_rfcomm() if [ -x /usr/bin/rfcomm ] && [ -f $RFCOMM_CONF ] ; then # rfcomm must always succeed for now: users # may not yet have an rfcomm-enabled kernel eval "/usr/bin/rfcomm -f $RFCOMM_CONF bind all $redirect" || : fi end script post-stop script # stop_rfcomm() logger -t bluez "Stopping rfcomm" if [ -x /usr/bin/rfcomm ]; then eval "/usr/bin/rfcomm unbind all $redirect" || : fi end script