Asianet dataline Autologin Script for linux
I had created one simple script to make it easy to login using asianet dataline without using any browser.
Requirements
1. Curl (http://bit.ly/bH7jSK)
Tested on Ubuntu
#!/bin/bash
#####################################################################################################
#ASIANET DATALINE AUTOLOGGER SCRIPT
#BY VINOD SURENDRAN
#(SMARTVINU@GMAIL.COM)#####################################################################################################
# Set your consumer Id
customer=TV7000
# Set your Password
password=mypassword#####################################################################################################
######### DONT EDIT BELOW ##########################################################################
#####################################################################################################if [ -n "`ifconfig | grep -A 1 wlan0 | grep "inet addr"`" ];
then
echo “Going to connect ….”
echo “Getting server URL … ”
targetUrl=`curl -v http://www.google.com 2>&1 | grep “Location:”|awk {‘print $3′} | cut -d? -f1`
echo “Got targetUrl as $targetUrl”
echo $targetUrl | grep “mwcp”
if [ $? -ne 0 ]; then
echo “Seems like you are logged in.”
echo “Preparing to logout”
curl https://myaccount.adlkerala.com/login.php –data “username=${customer}&pass=${password}” -c tempCookie
curl https://myaccount.adlkerala.com/disconn.php –data “confirm=1″ -b tempCookie
echo “Logged out.”
rm -f tempCookie
echo “Getting server URL … ”
targetUrl=`curl -v http://www.google.com 2>&1 | grep “Location:”|awk {‘print $3′} | cut -d? -f1`
echo “Got targetUrl as $targetUrl”
fi;curl $targetUrl –data “auth_user=$customer&auth_pass=$password&accept=Login” &> /dev/null
echo “Connected
”
SKIP=0
while truedo
echo “Waiting … ”
COUNT=0
if [ $SKIP -eq 0 ]; then
while true
do
sleep 1
echo -ne \\b\\b\\b\\b\\\b$COUNT
COUNT=`echo $COUNT + 1 | bc `
if [ $COUNT -gt 250 ]; then
break;
fi;
done
fi;
echo
echo “Sending alive … ”
curl $targetUrl –data “alive=y&un=$customer”
if [ $? -eq 0 ]; then
echo “done”
else
echo “failed.retrying … ”
fi;done
else
echo “Wifi not connected”;
fi

burning virus 12:02 pm on June 25, 2010 Permalink
I just can’t believe i spent the whole day, tweaking things to start evdo. wvdail, reinstalled ubuntu 2 times as of experimenting i did.
And it turns out they have software for this!!! thanks anyways.
Camel 11:57 am on June 27, 2010 Permalink
Coooooool man……………. i just installed Linux and was bothered EVDo linux driver and configuration. U saved my day PAL….. good work …….
harsh 2:41 pm on July 14, 2010 Permalink
I tried to install the driver you suggested but after installation it doesnt open any dialogue box and doesnt respond at all.kindly suggest the right process in steps to run the operations
vinod 5:52 am on July 19, 2010 Permalink
do start the application from the terminal and see what is the ouput in the terminal
jeffy 5:36 am on August 26, 2010 Permalink
i appreciate ur effort but not workin with me..using ubuntu 10.04,no dialer version found. soi used previous available one..application got installed,detects my modem,but doesnt connect…says serial port error ,kill ppp so..pls give a solution
harry 9:15 pm on November 27, 2010 Permalink
hello Vinod ,
it saves a lot of time, do u know how to configure adhoc network on ubuntu,
so that i can connect evdo internet to my nokia n95 too
prateek 6:48 am on October 22, 2011 Permalink
please tell me how to use BSNL EVDO Rev A Model:UE100 in linux
it is mfd by prithvisolutions.com
their manual show it support mac & linux (ubuntu) but it dont have any driver or help how to install it on linux.