]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/ppp-gprs/files/no_auth_apn_internet_gprs.patch
ppp-gprs: add scripts which use by default apn=internet, no username or password.
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / ppp-gprs / files / no_auth_apn_internet_gprs.patch
1 diff -Naur old/etc/ppp/chatscripts/gprs-connect-chat new/etc/ppp/chatscripts/gprs-connect-chat
2 --- old/etc/ppp/chatscripts/gprs-connect-chat   1970-01-01 02:00:00.000000000 +0200
3 +++ new/etc/ppp/chatscripts/gprs-connect-chat   2006-11-08 01:12:23.000000000 +0200
4 @@ -0,0 +1,18 @@
5 +###########################################
6 +# Suggested chat script called by PPPD
7 +# File: /etc/ppp/chatscripts/gprs-connect-chat
8 +###########################################
9 +ABORT  BUSY
10 +ABORT  'NO CARRIER'
11 +ABORT ERROR
12 +REPORT CONNECT
13 +TIMEOUT 10
14 +""     "AT&F"
15 +OK     "ATE1"
16 +OK     "AT+CGDCONT=1,\042IP\042,\042internet\042"
17 +SAY    "Calling GPRS\n"
18 +TIMEOUT 60
19 +OK     "ATD*99***1#"
20 +CONNECT \c
21 +###########################################
22 +###########################################
23 diff -Naur old/etc/ppp/chatscripts/gprs-disconnect-chat new/etc/ppp/chatscripts/gprs-disconnect-chat
24 --- old/etc/ppp/chatscripts/gprs-disconnect-chat        1970-01-01 02:00:00.000000000 +0200
25 +++ new/etc/ppp/chatscripts/gprs-disconnect-chat        2006-11-07 15:06:10.000000000 +0200
26 @@ -0,0 +1,10 @@
27 +# Boilerplate
28 +#
29 +        ABORT           BUSY
30 +        ABORT           ERROR
31 +        ABORT           'NO DIALTONE'
32 +        TIMEOUT         30
33 +
34 +# Get some attention
35 +        ''              '+++\c'
36 +        SAY             " + sending break"
37 diff -Naur old/etc/ppp/pap-secrets new/etc/ppp/pap-secrets
38 --- old/etc/ppp/pap-secrets     1970-01-01 02:00:00.000000000 +0200
39 +++ new/etc/ppp/pap-secrets     2006-11-08 01:14:27.000000000 +0200
40 @@ -0,0 +1 @@
41 +#*       *       "Your-GPRS-Password"        *
42 diff -Naur old/etc/ppp/peers/gprs new/etc/ppp/peers/gprs
43 --- old/etc/ppp/peers/gprs      1970-01-01 02:00:00.000000000 +0200
44 +++ new/etc/ppp/peers/gprs      2006-11-08 01:13:58.000000000 +0200
45 @@ -0,0 +1,42 @@
46 +###########################################
47 +#Suggested gprs PPPD configuration file
48 +#File /etc/ppp/peers/gprs
49 +###########################################
50 +#Set this to the device
51 +/dev/ttyS1
52 +#Baudrate
53 +115200
54 +#Idle time for closing connection
55 +idle   7200
56 +#Lock the device for this PPPD process use only
57 +lock
58 +#Use normal handshaking
59 +crtscts
60 +#Assume it is a modem device and force modem control methods
61 +modem
62 +#Any user can start the connection
63 +noauth
64 +#If a default route exists replace it with the ppp link
65 +#You get an error if this command is not supported
66 +#by your version of PPPD
67 +replacedefaultroute
68 +#Make the ppp link the default root
69 +defaultroute
70 +#Username and Password for computer/GlobeTrotter ppp link
71 +#Normally ignored. Change if GSM Operator requires it
72 +user               Anyname
73 +password           Anypassword
74 +#Change the path to chat if required for your version of Linux
75 +connect "/usr/sbin/chat -V -f /etc/ppp/chatscripts/gprs-connect-chat"
76 +disconnect "/usr/sbin/chat -f /etc/ppp/chatscripts/gprs-disconnect-chat"
77 +#Accept IP address provided by network
78 +noipdefault
79 +#Detach PPPD from console used to run the program {optional}
80 +#updetach
81 +nodetach
82 +#Get DNS addresses from operator
83 +usepeerdns
84 +#Don't use VJ compression for ppp link
85 +novj
86 +###########################################
87 +###########################################