blob: 6e3015eec19215d4ad2bc32715a342bc03c207e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
#!/bin/sh
########################################################################
# Begin bluez
#
# Description : Lancement du sous-système bluetooth
#
# Authors : tnut
# Update : piernov - piernov@piernov.org
#
# Version : 0.2
#
########################################################################
### BEGIN INIT INFO
# Provides: bluez
# Required-Start: udev
# Should-Start:
# Required-Stop:
# Should-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Lancement du sous-système bluetooth
# Description: Lance le démon bluez permettant la gestion des
# périphériques Bluetooth.
# X-LFS-Provided-By: NuTyX
### END INIT INFO
. /lib/lsb/init-functions
case "${1}" in
start)
log_info_msg "Starting bluetooth daemon..."
start_daemon /usr/sbin/bluetoothd
evaluate_retval
;;
stop)
log_info_msg "Stopping bluetooth daemon..."
killproc /usr/sbin/bluetoothd
evaluate_retval
;;
restart)
${0} stop
sleep 1
${0} start
;;
status)
statusproc /usr/sbin/bluetoothd
;;
*)
echo "Usage: ${0} {start|stop|restart|status}"
exit 1
;;
esac
# End $rc_base/init.d/
|