Files
xiao_pet_tracker_rust/mac_clear_ble_cache.sh

9 lines
283 B
Bash
Raw Permalink Normal View History

2025-06-27 16:41:18 +02:00
#!/bin/zsh
# A script to clear the macOS Bluetooth cache to get the latest BLE service changes.
sudo pkill bluetoothd
sudo rm /Library/Preferences/com.apple.Bluetooth.plist &> /dev/null
rm ~/Library/Preferences/ByHost/com.apple.Bluetooth.*.plist &> /dev/null
sudo pkill bluetoothd