Skip to content

Instantly share code, notes, and snippets.

@JamesHovious
Created August 24, 2014 23:11
Show Gist options
  • Select an option

  • Save JamesHovious/3d3f1e027c60be27de87 to your computer and use it in GitHub Desktop.

Select an option

Save JamesHovious/3d3f1e027c60be27de87 to your computer and use it in GitHub Desktop.
_IP=$(hostname -I)
# Make device discoverable
hciconfig hci0 piscan
# Set device name
hciconfig hci0 name 'My IP is '"$_IP"
# Wait 30 seconds
sleep 30
# Make device not discoverable
hciconfig hci0 noscan
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment