2008-09-11 02:10:24 +00:00
|
|
|
#!/bin/sh
|
2008-09-12 09:34:05 +00:00
|
|
|
#
|
|
|
|
# chkconfig: 345 50 83
|
2009-06-12 17:40:17 +00:00
|
|
|
# description: Turn HID adapters into Bluetooth ones
|
2008-09-12 09:34:05 +00:00
|
|
|
#
|
2008-09-11 02:10:24 +00:00
|
|
|
### BEGIN INIT INFO
|
2009-08-05 10:08:53 +00:00
|
|
|
# Short-Description: Trigger bluetoothd start-up
|
|
|
|
# Description: Trigger bluetoothd start-up
|
2008-09-11 02:10:24 +00:00
|
|
|
### END INIT INFO
|
|
|
|
|
|
|
|
# Source function library.
|
|
|
|
. /etc/rc.d/init.d/functions
|
|
|
|
|
|
|
|
[ -e /etc/sysconfig/bluetooth ] && . /etc/sysconfig/bluetooth
|
|
|
|
|
|
|
|
start()
|
|
|
|
{
|
2009-08-05 10:08:53 +00:00
|
|
|
echo -n $"Enabling Bluetooth devices:"
|
|
|
|
udevadm trigger --subsystem-match=bluetooth
|
2008-09-11 02:10:24 +00:00
|
|
|
echo ""
|
2009-08-05 10:08:53 +00:00
|
|
|
return 0
|
2008-09-11 02:10:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
stop()
|
|
|
|
{
|
2009-08-05 10:08:53 +00:00
|
|
|
# FIXME If somebody figures out how to disable the K* script
|
2008-09-11 02:10:24 +00:00
|
|
|
echo -n "Stopping Bluetooth services:"
|
|
|
|
echo ""
|
2009-08-05 10:08:53 +00:00
|
|
|
return 0
|
2008-09-11 02:10:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
start)
|
|
|
|
start
|
|
|
|
;;
|
|
|
|
stop)
|
|
|
|
stop
|
|
|
|
;;
|
|
|
|
*)
|
2010-02-15 09:58:17 +00:00
|
|
|
echo "Usage: $0 {start|stop}"
|
2009-05-06 11:24:51 +00:00
|
|
|
exit 3
|
2008-09-11 02:10:24 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
exit $RETVAL
|