dotfiles/home/default/scripts/restart-bluetooth
2023-10-15 15:01:14 -04:00

13 lines
277 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
echo stopping bluetooth...
sudo systemctl stop bluetooth-autoconnect
sudo systemctl stop bluetooth
sudo rmmod btusb
echo starting bluetooth...
sudo modprobe btusb
sudo systemctl start bluetooth
sudo systemctl start bluetooth-autoconnect