The Following 15 Users Say Thank You to philipl For This Useful Post: | ||
![]() |
2009-12-06
, 11:06
|
Posts: 9 |
Thanked: 1 time |
Joined on Dec 2009
@ Italy
|
#2
|
![]() |
2009-12-06
, 11:30
|
Posts: 289 |
Thanked: 560 times |
Joined on May 2009
@ Tampere, Finland
|
#3
|
Hi all,
I spent some time today writing a suitable upstart script to control bluetooth DUN. This will let it start automatically and generally act seamlessly.
You can read the details and get the script from my blog post
![]() |
2009-12-06
, 12:49
|
|
Posts: 2,142 |
Thanked: 2,054 times |
Joined on Dec 2006
@ Sicily
|
#4
|
![]() |
2009-12-07
, 08:14
|
Posts: 729 |
Thanked: 155 times |
Joined on Dec 2009
|
#5
|
![]() |
2009-12-07
, 16:21
|
Posts: 24 |
Thanked: 61 times |
Joined on Dec 2009
|
#6
|
![]() |
2009-12-07
, 16:46
|
|
Posts: 700 |
Thanked: 846 times |
Joined on Nov 2009
|
#7
|
Nokia-N900-42-11:~# cat /etc/event.d/bluetooth-dun description "DUN over Bluetooth" author "Philip Langdale" respawn console none start on started bluetoothd stop on stopping bluetoothd pre-start script sdptool add --channel 1 DUN end script exec rfcomm -S -- listen -1 1 /usr/bin/pnatd '{}' post-stop script sdptool del `sdptool browse local | grep Dial-Up -A 1 -m 1 | tail -n 1 | cut -d ' ' -f 3` sleep 1 end script Nokia-N900-42-11:~#
Nokia-N900-42-11:~# ps -eaf | grep rfcomm 933 root 0 SW< [krfcommd] 1845 root 2092 S grep rfcomm Nokia-N900-42-11:~#
Nokia-N900-42-11:~# initctl start bluetooth-dun bluetooth-dun (start) waiting bluetooth-dun (start) starting bluetooth-dun (start) pre-start, process 1851 bluetooth-dun (start) spawned, process 1853 bluetooth-dun (start) post-start, (main) process 1853 bluetooth-dun (start) running, process 1853 Nokia-N900-42-11:~# Nokia-N900-42-11:~# ps -eaf | grep rfcomm 933 root 0 SW< [krfcommd] 1853 root 1552 S rfcomm -S -- listen -1 1 /usr/bin/pnatd {} 1857 root 2092 S grep rfcomm Nokia-N900-42-11:~#
![]() |
2009-12-07
, 22:33
|
Posts: 24 |
Thanked: 61 times |
Joined on Dec 2009
|
#8
|
![]() |
2009-12-07
, 22:53
|
Posts: 1,208 |
Thanked: 1,028 times |
Joined on Oct 2007
|
#9
|
![]() |
2009-12-08
, 00:57
|
Posts: 16 |
Thanked: 5 times |
Joined on Nov 2009
|
#10
|
The Following 2 Users Say Thank You to in-maemo For This Useful Post: | ||
I spent some time today writing a suitable upstart script to control bluetooth DUN. This will let it start automatically and generally act seamlessly.
You can read the details and get the script from my blog post