dotfiles/home/default/scripts/restart-bluetooth

13 lines
277 B
Plaintext
Raw Normal View History

2022-01-17 10:13:50 -05:00
#!/usr/bin/env bash
set -euo pipefail
echo stopping bluetooth...
2023-10-15 15:01:14 -04:00
sudo systemctl stop bluetooth-autoconnect
2022-01-17 10:13:50 -05:00
sudo systemctl stop bluetooth
2023-10-15 15:01:14 -04:00
sudo rmmod btusb
2022-01-17 10:13:50 -05:00
echo starting bluetooth...
2023-10-15 15:01:14 -04:00
sudo modprobe btusb
2022-01-17 10:13:50 -05:00
sudo systemctl start bluetooth
sudo systemctl start bluetooth-autoconnect