3 # bluetooth Bluetooth subsystem starting and stopping
7 # description: Bluetooth subsystem
12 # Source function library
13 . /etc/rc.d/init.d/functions
15 [ -f /etc/sysconfig/bluetooth ] && . /etc/sysconfig/bluetooth
18 # Check if the service is already running?
19 if [ ! -f /var/lock/subsys/bluetooth ]; then
21 daemon /usr/sbin/hid2hci -q -r hci
23 /bin/sleep 1 # delay for hid's to be detected by hotplug
24 touch /var/lock/subsys/bluetooth
26 msg_already_running bluetooth
31 if [ -f /var/lock/subsys/bluetooth ]; then
33 daemon /usr/sbin/hid2hci -q -r hid
34 rm -f /var/lock/subsys/bluetooth
36 msg_not_running bluetooth
41 if [ -f /var/lock/subsys/bluetooth ]; then
45 msg_not_running bluetooth
51 # See how we were called.
59 restart|reload|force-reload)
67 if [ -f /var/lock/subsys/bluetooth ]; then
74 msg_usage "$0 {start|stop|restart|try-restart|reload|force-reload|status}"