Add an example script to connect to Cingular's 3G service.

This commit is contained in:
christos 2008-10-25 17:43:24 +00:00
parent e8d515e422
commit 56ed44c4a5
4 changed files with 47 additions and 2 deletions

View File

@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.15 2007/11/12 15:01:50 jmmv Exp $
# $NetBSD: Makefile,v 1.16 2008/10/25 17:43:24 christos Exp $
SUBDIR= amd apm atf disktab emul fstab ftpd hostapd isdn racoon \
SUBDIR= amd apm atf disktab emul fstab ftpd hostapd isdn pppd racoon \
supfiles syslogd wsmoused
.include <bsd.subdir.mk>

View File

@ -0,0 +1,12 @@
# $NetBSD: Makefile,v 1.1 2008/10/25 17:43:24 christos Exp $
NOOBJ= # defined
.include <bsd.own.mk>
.if ${MKSHARE} != "no"
FILES= cingular3G cingular3G.chat
FILESDIR=/usr/share/examples/pppd
.endif
.include <bsd.prog.mk>

View File

@ -0,0 +1,27 @@
# $NetBSD: cingular3G,v 1.1 2008/10/25 17:43:24 christos Exp $
# Script to connect to Cingular-3G's service.
#
#kdebug 10
#debug 10
/dev/ttyU0 460800
holdoff 10
#idle 600
demand
#active-filter-out "icmp or (udp and not udp port route) or (tcp and not tcp port ntp)"
#active-filter-in "icmp or (udp and not udp port route) or (tcp and not tcp port ntp)"
#pass-filter-in "tcp or (udp and not udp port route) or icmp"
#pass-filter-out "tcp or (udp and not udp port route) or icmp"
#netmask 0xffffff00
ipcp-accept-local
#lcp-echo-failure 5
#lcp-echo-interval 5
#mtu 296
defaultroute
crtscts
modem
lock
connect /etc/ppp/connect/cingular3G.chat
noauth
user WAP@CINGULARGPRS.COM
password 'cingular1'
usepeerdns

View File

@ -0,0 +1,6 @@
#!/bin/sh
chat -t 100 -v '' 'ATZ' \
'OK' 'AT+CGDCONT=1,"IP","ISP.CINGULAR"' \
'OK' 'ATDT*99***1#' \
TIMEOUT 120 \
'CONNECT' '\c'