#!/bin/sh
sudo hcitool cc 00:12:56:D7:4B:6A &&
sudo hcitool auth 00:12:56:D7:4B:6A &&
( sudo rfcomm connect 0 00:12:56:D7:4B:6A 16 </dev/null >/dev/null & )
sleep 2
sudo chmod 666 /dev/rfcomm0
