2022-10-28 22:33:07 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2023-08-07 00:30:11 +00:00
|
|
|
# Minimal OS variable loading for performance
|
|
|
|
. /etc/profile.d/02-distribution
|
2022-10-28 22:33:07 +00:00
|
|
|
|
2023-07-23 13:47:19 +00:00
|
|
|
(
|
|
|
|
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
|
|
|
|
) &
|