improve bluetooth restart script
This commit is contained in:
parent
6a242b158e
commit
1f800423ec
@ -1,12 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
set -euox pipefail
|
||||
|
||||
pkill -f blueman-manager || true
|
||||
|
||||
echo stopping bluetooth...
|
||||
sudo systemctl stop bluetooth-autoconnect
|
||||
sudo systemctl stop bluetooth
|
||||
sudo rmmod btusb
|
||||
sudo modprobe -r btusb
|
||||
|
||||
echo starting bluetooth...
|
||||
sudo modprobe btusb
|
||||
sudo systemctl start bluetooth
|
||||
sudo systemctl start bluetooth-autoconnect
|
||||
sudo rfkill unblock bluetooth
|
||||
|
Loading…
Reference in New Issue
Block a user