3 # rfcomm Bluetooth RFCOMM setup. Sets up serial devices over Bluetooth.
7 # description: Bluetooth RFCOMM setup
12 # Source function library
13 . /etc/rc.d/init.d/functions
15 UART_CONF="/etc/bluetooth/uart"
16 [ -f /etc/sysconfig/bluetooth ] && . /etc/sysconfig/bluetooth
18 if [ "$UART_CONF" != "no" -a ! -f "$UART_CONF" ]; then
23 # Check if the service is already running?
24 if [ -f /var/lock/subsys/rfcomm ]; then
25 msg_already_running rfcomm
30 daemon /usr/bin/rfcomm -f /etc/bluetooth/rfcomm.conf bind all
32 touch /var/lock/subsys/rfcomm
36 if [ ! -f /var/lock/subsys/rfcomm ]; then
37 msg_not_running rfcomm
42 daemon /usr/bin/rfcomm release all
43 rm -f /var/lock/subsys/rfcomm
47 if [ ! -f /var/lock/subsys/rfcomm ]; then
48 msg_not_running rfcomm
58 if [ ! -f /var/lock/subsys/rfcomm ]; then
59 msg_not_running rfcomm
64 nls "rfcomm is running"
68 # See how we were called.
76 restart|reload|force-reload)
87 msg_usage "$0 {start|stop|restart|try-restart|reload|force-reload|status}"