Index: scripts/bluetooth_paired_clear.sh =================================================================== diff -u -r15f9b824713355427ea8a1de5e0a7ecca5392c28 -rf054dc55d85aa6836da92207759b6ae3b1993c53 --- scripts/bluetooth_paired_clear.sh (.../bluetooth_paired_clear.sh) (revision 15f9b824713355427ea8a1de5e0a7ecca5392c28) +++ scripts/bluetooth_paired_clear.sh (.../bluetooth_paired_clear.sh) (revision f054dc55d85aa6836da92207759b6ae3b1993c53) @@ -19,6 +19,7 @@ # 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. +# main DEVICES=$(echo "devices" | sudo bluetoothctl | grep ^Device | cut -b 8-25) if [ ! -z "$DEVICES" ]; then for device in $DEVICES; do @@ -37,3 +38,7 @@ done fi +# exit gracefully +sleep 0.1 +echo "" +exit 0 \ No newline at end of file