first commit
This commit is contained in:
38
etc_org/chatscripts/gprs
Normal file
38
etc_org/chatscripts/gprs
Normal file
@ -0,0 +1,38 @@
|
||||
# You can use this script unmodified to connect to cellular networks.
|
||||
# The APN is specified in the peers file as the argument of the -T command
|
||||
# line option of chat(8).
|
||||
|
||||
# For details about the AT commands involved please consult the relevant
|
||||
# standard: 3GPP TS 27.007 - AT command set for User Equipment (UE).
|
||||
# (http://www.3gpp.org/ftp/Specs/html-info/27007.htm)
|
||||
|
||||
ABORT BUSY
|
||||
ABORT VOICE
|
||||
ABORT "NO CARRIER"
|
||||
ABORT "NO DIALTONE"
|
||||
ABORT "NO DIAL TONE"
|
||||
ABORT "NO ANSWER"
|
||||
ABORT "DELAYED"
|
||||
ABORT "ERROR"
|
||||
|
||||
# cease if the modem is not attached to the network yet
|
||||
ABORT "+CGATT: 0"
|
||||
|
||||
"" AT
|
||||
TIMEOUT 12
|
||||
OK ATH
|
||||
OK ATE1
|
||||
|
||||
# +CPIN provides the SIM card PIN
|
||||
#OK "AT+CPIN=1234"
|
||||
|
||||
# +CFUN may allow to configure the handset to limit operations to
|
||||
# GPRS/EDGE/UMTS/etc to save power, but the arguments are not standard
|
||||
# except for 1 which means "full functionality".
|
||||
#OK AT+CFUN=1
|
||||
|
||||
OK AT+CGDCONT=1,"IP","\T","",0,0
|
||||
OK ATD*99#
|
||||
TIMEOUT 22
|
||||
CONNECT ""
|
||||
|
22
etc_org/chatscripts/pap
Normal file
22
etc_org/chatscripts/pap
Normal file
@ -0,0 +1,22 @@
|
||||
# You can use this script unmodified to connect to sites which allow
|
||||
# authentication via PAP, CHAP and similar protocols.
|
||||
# This script can be shared among different pppd peer configurations.
|
||||
# To use it, add something like this to your /etc/ppp/peers/ file:
|
||||
#
|
||||
# connect "/usr/sbin/chat -v -f /etc/chatscripts/pap -T PHONE-NUMBER"
|
||||
# user YOUR-USERNAME-IN-PAP-SECRETS
|
||||
# noauth
|
||||
|
||||
# Uncomment the following line to see the connect speed.
|
||||
# It will be logged to stderr or to the file specified with the -r chat option.
|
||||
#REPORT CONNECT
|
||||
|
||||
ABORT BUSY
|
||||
ABORT VOICE
|
||||
ABORT "NO CARRIER"
|
||||
ABORT "NO DIALTONE"
|
||||
ABORT "NO DIAL TONE"
|
||||
"" ATZ
|
||||
OK ATDT\T
|
||||
CONNECT ""
|
||||
|
19
etc_org/chatscripts/provider
Normal file
19
etc_org/chatscripts/provider
Normal file
@ -0,0 +1,19 @@
|
||||
# This is the chat script used to dial out to your default service provider.
|
||||
# Please customize the entries enclosed in parenthesis to match your setup.
|
||||
# Only the "provider" file will be handled by poff and pon (unless with
|
||||
# extra command line arguments).
|
||||
#
|
||||
# Remember to edit /etc/ppp/peers/provider accordingly.
|
||||
#
|
||||
# ATZW2 as a default init string
|
||||
# - On all hayes compatible modems, W2 will correctly report the connect
|
||||
# speed.
|
||||
#
|
||||
ABORT BUSY
|
||||
ABORT "NO CARRIER"
|
||||
ABORT VOICE
|
||||
ABORT "NO DIALTONE"
|
||||
"" ATZW2
|
||||
OK ATDT<put phone number here>
|
||||
ogin <put login name here>
|
||||
word \q<put password here>
|
Reference in New Issue
Block a user