totally restart bluetooth
This commit is contained in:
parent
b1807eb72b
commit
80b1cc73a8
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user