For console lovers ....
Check your vendor and code.
Create an udev rule by editing
/etc/udev/rules.d/10-local.rules
so each time you insert your usb modem a script executes in order to do this:
Code:
modprobe -r usbserial
umount /media/Vodafone/ (replace with ur disk)
modprobe usbserial vendor=0xYYYY product=0xZZZZ
Then run
Code:
wvdial 5800 (replace with your modem)
wvdial.conf should look like
Code:
[Dialer Defaults]
Phone = *99***1#
Username = whatever
Password = whatever
Dial Command = ATDT
Stupid Mode = 1
[Dialer reset]
Modem = /dev/ttyUSB0
Init1 = AT
[Dialer 5800]
New PPPD = yes
Phone = *99***1#
Modem = /dev/ttyACM0
Baud = 921600
Init2 = ATZ
Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ISDN = 0
Modem Type = USB Modem
Init5 =AT+CGDCONT=1,"IP","movistar.es";
and you are done
I use a Novatel MC950D