########################################################### HOW TO INSTALL/CALL: ## (Edit and) save this file as /etc/ppp/peers/mtnlgprs ## RUN: pppd call mtnlgprs ## STOP: kill `head -1 /var/run/ppp-mtnlgprs.pid` ## ## TIP: you can configure to use your own mobile operator ## with just few minor and very obvious changes ############################################################debug#USB mode/dev/ttyACM0 460800#Bluetooth mode#(HINT: rfcomm bind rfcomm0 BL:UE:TO:TH:AD:DR CHANNEL)#/dev/rfcomm0 460800#disconnect if idle, saves lot of mobile battery power#pppd will auto-reconnect on activity if ON DEMAND setidle 105holdoff 30#packets to consider link as active, may be commented#active-filter 'dst port \( 80 or 53 \)'user mtnlpassword mtnl123ipparam mtnlgprslinkname mtnlgprsremotename mtnlgprs#uncomment to use DNS automatically supplied by ISPsusepeerdns#stay in foreground, do not detach from terminal#nodetach#detach once the connection is established#updetach#default route is required for ON DEMAND to work#you may have to run "ip route del default"demanddefaultroutektunenoauthlockmodemcrtsctsasyncmap 00000000connect "/usr/sbin/chat \ ABORT BUSY \ ABORT ERROR \ ABORT 'NO ANSWER' \ ABORT 'NO CARRIER' \ ABORT 'NO DIALTONE' \ ABORT 'Invalid Login' \ ABORT 'Login incorrect' \ '' ATZ \ OK 'ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0' \ OK 'at+cgdcont=1,\"ip\",\"gprsppsmum\"' \ OK 'ATDT*99#' \ CONNECT ''"