improve bluetooth restart script
This commit is contained in:
parent
7cd05447e0
commit
743a51a846
@ -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