Skip to content

Instantly share code, notes, and snippets.

@vmu9999
Created March 17, 2020 09:56
Show Gist options
  • Save vmu9999/9918ceaee2f3fffb3d4e73deb7d11504 to your computer and use it in GitHub Desktop.
Save vmu9999/9918ceaee2f3fffb3d4e73deb7d11504 to your computer and use it in GitHub Desktop.
Shell script to restart bluetooth daemon for macOS.
#!/bin/bash
echo "Restarting bluetooth daemon for OSX"
sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
sudo kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
echo "Complete"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment