/etc/wvdial.conf:
Code:
[Dialer Sunrise]
Modem = /dev/ttyUSB1
Baud = 460900
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0&C1 &D2
ISDN = 1
Modem Type = USB Modem
Phone = *91#
Username = ''
Password = ''
Now while you utilize the modem it will primary show up as virtual CD ROM and not be observable as USB modem. So I wrote this script '/usr/bin/sunrise.sh':
Code:
#! /bin/bash
sudo modprobe -r usbserial
sudo eject /dev/scd1
sudo modprobe usbserial vendor=0x1420 product=0x4300
sleep 4
wvdial Sunrise
And because I am a lazy person, I shaped myself a novel launcher with a good icon which executes this command:
Code:
gksudo 'gnome-terminal -x /usr/bin/Sunrise.sh'
So, now all I have to perform is to connect the USB modem into my Linux laptop, wait until the effective CD ROM fraction gets raised and after that click on the symbol. I get asked my password and remain occurs automatically.
Bookmarks