dotfiles/home/default/scripts/restart-bluetooth

14 lines
263 B
Plaintext
Raw Normal View History

2022-01-17 10:13:50 -05:00
#!/usr/bin/env bash
2024-04-25 10:59:08 -04:00
set -euox pipefail
pkill -f blueman-manager || true
2022-01-17 10:13:50 -05:00
echo stopping bluetooth...
sudo systemctl stop bluetooth
2024-04-25 10:59:08 -04:00
sudo modprobe -r btusb
2023-10-15 15:01:14 -04:00
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
2024-04-25 10:59:08 -04:00
sudo rfkill unblock bluetooth