* mark python sqlite DEP opt and update .cache
[t2sde.git] / package / network / bluez / bluetoothd.init
blobae017f80ea4339525f677675529a5decace16fda
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/bluez/bluetoothd.init
3 # Copyright (C) 2009 - 2023 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                 D_libexecdir/bluetooth/bluetoothd &
20                 sleep 3
21                 check(`D_bindir/bluetoothctl power on')
22         block_end
24         block_begin(stop, `Stopping bluetooth')
25                 check(`D_bindir/bluetoothctl power off')
26                 check(`killall D_libexecdir/bluetooth/bluetoothd')
27         block_end
29         block_begin(restart, `Restarting bluetooth')
30                 check(`killall -1 D_libexecdir/bluetooth/bluetoothd')
31         block_end
33 main_end