distribution/packages/network/bluez/autostart/009-bluetooth

18 lines
384 B
Text
Raw Normal View History

#!/bin/bash
# Minimal OS variable loading for performance
. /etc/profile.d/02-distribution
(
if [ "$(get_setting bluetooth.enabled)" == "1" ]
then
tocon "Starting bluetooth..."
nohup systemctl start bluetooth &
nohup systemctl start bluetooth-agent &
nohup systemctl start bluetoothsense &
rfkill unblock bluetooth
else
rfkill block bluetooth
fi
) &