+------------------------------------------------------
| Inspired by

Sony Ericsson GC85: network EDGE connection

+------------------------------------------------------
| Running EDGE/3G Connection

# to set the mobile phone up and to init GSM/3G module
/etc/3g-e60 init

# to start EDGE/3G communication
/etc/3g-e60 up

# to stop EDGE/3G communication
/etc/3g-e60 down
# or  press Ctrl+C

# to turn the mobile phone down
/etc/3g-e60 stop


+------------------------------------------------------
| /etc/3g-e60 script

#! /bin/bash

#       Nokia E60 Mobile Phone EDGE/3G connection

case "$1" in
  init)
        /usr/sbin/hcid
        /usr/bin/rfcomm -i hci1 connect /dev/rfcomm0 xx:xx:xx:xx:xx:xx 2 &
        ;;
  up)
        cp /etc/ppp/options.3g /etc/ppp/options
        /usr/sbin/pppd call 3ge60
        ;;
  down)
        /sbin/ifconfig ppp0 down
        killall pppd
        ;;
  stop)
        killall rfcomm
        killall hcid
        ;;
  *)
        echo "Usage: $0 {init|up|down|stop}"

esac
exit 0


+------------------------------------------------------
| /etc/ppp/options.3g

usepeerdns
defaultroute
noipdefault
noauth
460800


+------------------------------------------------------
| /etc/ppp/peers/3ge60

debug
/dev/rfcomm0 460800
crtscts
#modem
#lock
receive-all
#nopcomp
#noaccomp
#noccp
#novj
#novjccomp
nodetach
#noipdefault
defaultroute
noauth
usepeerdns
connect '/usr/sbin/chat -v -e -f /etc/chatscripts/3ge60'
disconnect '/usr/sbin/chat -v -e -f /etc/chatscripts/3ge60-hang'


+------------------------------------------------------
| /etc/chatscripts/3ge60

ABORT BUSY
ABORT 'NO CARRIER'
ABORT 'NO DIALTONE'
ABORT 'NO ANSWER'
ABORT ERROR
REPORT CONNECT
TIMEOUT 120
'' ATZ
#OK-AT-OK 'AT_OPSYS=3,2'
OK-AT-OK 'AT+CSQ'
OK-AT-OK 'AT+CGDCONT=1,"IP","internet"'
OK-AT-OK 'ATD*99***1#'
#CONNECT ""


+------------------------------------------------------
| /etc/chatscripts/3ge60-hang

SAY "\nDisconnect...\n"
"" "\K"
"" "+++ATH"
SAY "\nDisconnected.\n"