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

6 lines
217 B
Bash
Raw Normal View History

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