#!/usr/bin/env bash
set -euo pipefail

echo stopping bluetooth...
sudo systemctl stop bluetooth-autoconnect
sudo systemctl stop bluetooth
sudo rmmod btusb

echo starting bluetooth...
sudo modprobe btusb
sudo systemctl start bluetooth
sudo systemctl start bluetooth-autoconnect