bluez/bluetooth.init

46 lines
709 B
Plaintext
Raw Normal View History

2008-09-11 02:10:24 +00:00
#!/bin/sh
#
# chkconfig: 345 50 83
# description: Turn HID adapters into Bluetooth ones
#
2008-09-11 02:10:24 +00:00
### BEGIN INIT INFO
# 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()
{
echo -n $"Enabling Bluetooth devices:"
udevadm trigger --subsystem-match=bluetooth
2008-09-11 02:10:24 +00:00
echo ""
return 0
2008-09-11 02:10:24 +00:00
}
stop()
{
# 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 ""
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}"
exit 3
2008-09-11 02:10:24 +00:00
;;
esac
exit $RETVAL