summarylogtreecommitdiffstats
path: root/unfuck_bt
blob: 2c2cb6ead42536a03921916ea299c5d87b66a5a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

if [[ $UID != 0 ]]; then
    echo "Please run this script with sudo:"
    echo "sudo $0 $*"
    exit 1
fi

rfkill block bluetooth
pkill -15 bluetoothd
systemctl restart bluetooth
rfkill unblock bluetooth