# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/bluez/bluetoothd.init # Copyright (C) 2009 - 2023 The T2 SDE Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2. # --- T2-COPYRIGHT-NOTE-END --- # Desc: bluetooth daemon # Runlevel: 85 rcX # main_begin block_begin(start, `Starting bluetooth') D_libexecdir/bluetooth/bluetoothd & sleep 3 check(`D_bindir/bluetoothctl power on') block_end block_begin(stop, `Stopping bluetooth') check(`D_bindir/bluetoothctl power off') check(`killall D_libexecdir/bluetooth/bluetoothd') block_end block_begin(restart, `Restarting bluetooth') check(`killall -1 D_libexecdir/bluetooth/bluetoothd') block_end main_end