#Prerequisite wvdial installed
##Create a rule for your net card lsusb
output may look like Bus 001 Device 023: ID 12d1:ffe9 Random Technologies Co., Ltd.
vendor - 12d1
product - ffe9
to be used in rules.d
##create a file reliance-start.rules in /etc/udev/rules.d
ACTION=="add",SUBSYSTEM=="usb",ENV{DEVTYPE}=="usb_device",ATTRS{idVendor}=="12d1",ATTRS{idProduct}=="ffe9",RUN+="/usr/local/startRe.sh"
##create a file wvconf in /etc
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Stupid Mode = 1
Modem Type = USB Modem
ISDN = 0
Phone = #777
New PPPD = yes
Modem = /dev/ttyUSB0
Username = phone-number
Password = phone-number
CBaud = 460800
As mentioned in the rules file create startRe.sh(Not necessary it should be in usr/local/)
##create a file startRe.sh #! /bin/bash modprobe usbserial vendor=0x19d2 product=0xffe9 logger "Reliance started" wvdial