Index: scripts/bluetooth_paired_clear.sh =================================================================== diff -u -rd4988df80c5d03fe46e42c9563043ae281247278 -r01b9447a564c79628976078d442b8fa198adec97 --- scripts/bluetooth_paired_clear.sh (.../bluetooth_paired_clear.sh) (revision d4988df80c5d03fe46e42c9563043ae281247278) +++ scripts/bluetooth_paired_clear.sh (.../bluetooth_paired_clear.sh) (revision 01b9447a564c79628976078d442b8fa198adec97) @@ -19,20 +19,20 @@ # This file is called by UI Software to removed all the currnelty paired or cached devices. # This is done before each scan to clean up and start a fresh scan. -DEVICES=$(echo "devices" | bluetoothctl | grep ^Device | cut -b 8-25) +DEVICES=$(echo "devices" | sudo bluetoothctl | grep ^Device | cut -b 8-25) if [ ! -z "$DEVICES" ]; then for device in $DEVICES; do if [ ! -z "$device" ]; then - echo "remove $device" | bluetoothctl + echo "remove $device" | sudo bluetoothctl fi done fi -PAIRED_DEVICES=$(echo "paired-devices" | bluetoothctl | grep ^Device | cut -b 8-25) +PAIRED_DEVICES=$(echo "paired-devices" | sudo bluetoothctl | grep ^Device | cut -b 8-25) if [ ! -z "$PAIRED_DEVICES" ]; then for paired_device in $PAIRED_DEVICES; do if [ ! -z "$paired_device" ]; then - echo "remove $paired_device" | bluetoothctl + echo "remove $paired_device" | sudo bluetoothctl fi done fi