#!/bin/sh running=$(ps xa | grep 3egprs | awk '$6 == "call" {print $2}') if test $running == "rfcomm0" then sudo poff 3egprs sudo /etc/init.d/dbus stop sudo /etc/init.d/bluetooth stop kdialog --msgbox "GPRS Connection has been stopped!" else sudo /etc/init.d/dbus start sudo /etc/init.d/bluetooth start sleep 1 sudo pon 3egprs kdialog --msgbox "GPRS Connection has been started!" fi