waayyy cool[er]
By basd on Sep 28, 2009 | In kde4, linux, tethered blackberry
Okay, so I wanted to reduce the number of steps to launch the Blackberry tethered connection and also reduce screen clutter.
...
I came up with this:
kdesu rfcomm connect 0 &
kdialog --title "Bluetooth to Blackberry" --yesno "rfcomm up?" 6 25
if [ $? = 0 ]; then
echo $?
kppp
fi
exit 0
The reason for the "yesno" dialog is to give rfcomm time to connect -- I found otherwise it's not quite ready when kppp starts. I could put a timeout counter in between, but it seemed easier to just have a manual dialog.
So, in this configuration I do not get any konsole feedback from the scripts, just dialog boxes. When I "disconnect" via kppp, rfcomm0 is also disconnected and I'm ready to start over again. (But, kppp must be exited before re-dialing, as rfcomm0 is no longer available.
Trackback address for this post
Trackback URL (right click and copy shortcut/link location)
No feedback yet
| « so, you would think ... | fixing the linux - blackberry connection » |