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
26 daemon /usr/bin/rfcomm -f /etc/bluetooth/rfcomm.conf bind all
28 touch /var/lock/subsys/rfcomm
30 msg_already_running rfcomm
35 if [ -f /var/lock/subsys/rfcomm ]; then
37 daemon /usr/bin/rfcomm release all
38 rm -f /var/lock/subsys/rfcomm
40 msg_not_running bluetooth
45 if [ -f /var/lock/subsys/rfcomm ]; then
49 msg_not_running rfcomm
55 # See how we were called.
63 restart|reload|force-reload)
71 if [ -f /var/lock/subsys/rfcomm ]; then
78 msg_usage "$0 {start|stop|restart|try-restart|reload|force-reload|status}"