Comment 7 for bug 200047

Revision history for this message
Hector Suarez barenca (barenca) wrote : Re: Pidgin doesn't autoconnect when on ppp network.

Same problem.

Linux barenca-laptop 2.6.28-13-generic #45-Ubuntu SMP Tue Jun 30 19:49:51 UTC 2009 i686 GNU/Linux

It happens when i use my mobile broadband 3G in Mexico (CDU-680).

I do not start my connection using the network manager (I can't -I do not why) but command line.

This is the way i connect to the 3G service:

#!/bin/sh

echo "-------- Detector de dispositivo CDU680DORA -------"
echo

DEV=`mount -l|grep CDU680|awk '{print $1}'`
if [ -e "$DEV" ]; then
    echo "Dispositivo BAM encontrado en $DEV"
    PREPARE="itfchg $DEV"
    PROCESSES=`ps -fea`
    ACTIVE=`echo $PROCESSES|grep "$PREPARE"`

    if [ -z "$ACTIVE" ]; then
        sudo ./$PREPARE
    else
       echo "It's already prepared"
    fi
else
   echo "It seems the cdu-680 is not mounted"
   exit;
fi

echo "CDU680DORA Linux Connection\n"
rm -rf sprintconfig wvdialconf_log
wvdialconf sprintconfig > wvdialconf_log

sleep 5

echo "[Dialer Defaults]">>sprintconfig
echo "Init1 = ATZ">>sprintconfig
echo "Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0">>sprintconfig
echo "Carrier Check = no">>sprintconfig
echo "Stupid Mode = yes" >> sprintconfig
echo "Phone = #777">>sprintconfig
echo "Username = 0000">>sprintconfig
echo "Password = 0000">> sprintconfig

if [ -e /dev/ttyACM0 ]; then
   echo "Modem = /dev/ttyACM0">>sprintconfig
fi

if [ -e /dev/ttyUSB0 ]; then
   echo "Modem = /dev/ttyUSB0">> sprintconfig
fi

echo "Baud = 460800">>sprintconfig
rm -rf wvdialconf_log
echo "--> Dialing...\n"
sudo wvdial --config sprintconfig