Рабочий вариант для PGI 0.9, Huawei E1750 Мегафон С.Петербург:
PGI.conf
(если хотим запуск автоматом, если нет, то оставляем "none" и telnet с компа _linenums:0'>BACKUP_DIR="/media/pgi-backup"CI_INIT="no"CRON="no"EPG_DATA_DIR="/media"ETH_ADDR_LOW="none"MEDIA_CLEAN="no"NFSD="no"NFS_REC="no"NFS_REC_PROTO="tcp"NTP_SYNC="ru.pool.ntp.org"PPPD_PEER="gprs"<strong class='bbc'> (если хотим запуск автоматом, если нет, то оставляем "none" и telnet с компа: pppd call gprs &)</strong>SAMBA="no"SKIN="default"USB_MODEM="12d1:1001"WEBTV="no"DEBUG="no"
GPRS Chat File
'ABORT' 'ERROR'
'ABORT' 'NO ANSWER'
'ABORT' 'NO CARRIER'
'ABORT' 'NO DIALTONE'
'ABORT' 'Invalid Login'
'ABORT' 'Login incorrect'
'TIMEOUT' '10'
#
# Modem Init
'' 'ATZ'
#
#
'OK' 'ATM1L1'
#
# "internet" represents Vodafone's APN, whereas "general.t-mobile.uk" is T-mobiles UK APN address
'OK' 'AT&f+cgdcont=1,"IP","","",0,0'
'OK' 'ATDT*99#'
'CONNECT' ''
_linenums:0'># GPRS Chat File, contains all parameters that /usr/sbin/chat will pass to the modem to create the GPRS connection### Abort Strings'ABORT' 'BUSY''ABORT' 'ERROR''ABORT' 'NO ANSWER''ABORT' 'NO CARRIER''ABORT' 'NO DIALTONE''ABORT' 'Invalid Login''ABORT' 'Login incorrect''TIMEOUT' '10'## Modem Init'' 'ATZ'##'OK' 'ATM1L1'## "internet" represents Vodafone's APN, whereas "general.t-mobile.uk" is T-mobiles UK APN address'OK' 'AT&f+cgdcont=1,"IP","","",0,0''OK' 'ATDT*99#''CONNECT' ''
PEERS GPRS file
#this file contains all the parameters pppd will pass to the modem to establish the GPRS connection## The user and password has been commented out becasue the "noauth" command is being used#user web#password web## This places a default route in the routing table with the peer as the gatewaydefaultroute## This can also be used to replace existing default routes#replacedefaultroute## Serial Modem to use/dev/ttyUSB0460800## Call this chat script to issue the modem commandsconnect "/sbin/chat -v -f /var/etc/ppp/chats/gprs.chat"## Enable debugging to /var/log/messagesdebug## Enable kernel debugging level 4kdebug 4##ipcp-no-addresses##noipdefault## Do not require the peer to use authenticationnoauth## Disable Van Jacobson style TCP/IP header compression in both TX and RXnovj## Disable compression control protocol,if peer doesnt accept requests for CCP from pppdnoccp## Use RTS/CTS hardware flow controlcrtscts## I cant find what this means, but if its not included there is no output to the command promptmodem -detach## Use DNS given to peer and rewrite /etc/resolv.confusepeerdns## pppd will accept the peers idea of its remote ip addressipcp-accept-remote## pppd will accept the peers idea of its local ip addressipcp-accept-local#