Skip to content

Instantly share code, notes, and snippets.

@ziogaschr
Forked from hughsaunders/release_bt_keyboard.sh
Last active December 29, 2015 08:39
Show Gist options
  • Save ziogaschr/7644441 to your computer and use it in GitHub Desktop.
Save ziogaschr/7644441 to your computer and use it in GitHub Desktop.
#!/bin/sh
# Disable BT on local machine and enable it on remote machine, so KB/Mouse reconnect to remote machine.
#ensure local bluetooth is off
/usr/local/bin/blueutil off
#enable imac bluetooth
ssh [email protected] '/usr/local/bin/blueutil on'
# this is needed for ControlPlane use
exit 0
#!/bin/sh
# Disable BT on remote machine and enable it on local machine, so KB/Mouse reconnect to local machine.
#ensure local bluetooth is off
/usr/local/bin/blueutil off
#disable imac bluetooth
ssh [email protected] '/usr/local/bin/blueutil off'
#enable local bluetooth
/usr/local/bin/blueutil on
# this is needed for ControlPlane use
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment