Last active
December 15, 2015 12:19
-
-
Save hughsaunders/5259156 to your computer and use it in GitHub Desktop.
Control bluetooth on a remote mac, so that its keyboard and mouse can be stolen or returned.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
#Restore bluetooth peripherals to the iMac | |
#ensure local bluetooth is off | |
blueutil off | |
#enable imac bluetooth | |
ssh imac27 '/usr/local/bin/blueutil on' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
#Steal bluetooth peripherals from iMac | |
#ensure local bluetooth is off | |
blueutil off | |
#disable imac bluetooth | |
ssh imac27 '/usr/local/bin/blueutil off' | |
#enable local bluetooth | |
blueutil on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment