/[scripts]/trunk/bt.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /trunk/bt.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 109 - (hide annotations)
Tue Feb 24 21:42:35 2009 UTC (15 years, 2 months ago) by dpavlin
File MIME type: application/x-sh
File size: 315 byte(s)
small bluetooth helper script

1 dpavlin 109 if [ "$1" == 'off' ] ; then
2     sudo sh -c 'echo disable > /proc/acpi/ibm/bluetooth'
3     exit
4     fi
5    
6     sudo sh -c 'echo enable > /proc/acpi/ibm/bluetooth'
7     sleep 1
8     sudo hciconfig hci0 down
9     sudo hciconfig hci0 up
10     hciconfig
11    
12     if [ ! -z "$1" ] ; then
13     rfcomm release rfcomm0
14     rfcomm connect rfcomm0 00:14:A7:6D:0E:DA &
15     pon $1
16     fi
17    

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26