Dash:
[t2-trunk.git] / package / network / bluez / bluetoothd.init
blobd932b3fd89efa6eb688fdd35abce410facf140fc
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/bluez/bluetoothd.init
3 # Copyright (C) 2009 - 2021 The T2 SDE Project
4
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
12 # Desc: bluetooth daemon
13 # Runlevel: 85 rcX
16 main_begin
18     block_begin(start, `Starting bluetooth')
19                 check(`D_prefix/libexec/bluetooth/bluetoothd')
20                 check(`D_prefix/bin/bluetoothctl power on')
21     block_end
23     block_begin(stop, `Stopping bluetooth')
24         check(`D_prefix/libexec/bin/bluetoothctl power off')
25         check(`killall D_prefix/libexec/bluetooth/bluetoothd')
26     block_end
28     block_begin(restart, `Restarting bluetooth')
29         check(`killall -1 D_prefix/libexec/bluetooth/bluetoothd')
30     block_end
32 main_end