totally restart bluetooth

This commit is contained in:
shibao 2023-10-15 15:01:14 -04:00
parent b1807eb72b
commit 80b1cc73a8
1 changed files with 4 additions and 3 deletions

View File

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