sargo-temp/ansible/files/bluetooth-mac.bash

6 lines
218 B
Bash
Raw Normal View History

2024-07-16 23:17:32 +00:00
#!/usr/bin/env bash
set -x
rfkill unblock bluetooth
echo $"stdin for btmgmt" | btmgmt -i hci0 public-addr $(hciconfig hci0 | grep -o $"[[:xdigit:]:]\\{11,17\\}")'
# btmgmt requires stdin, so we feed it some garbage...