From f1b14bfad73436da9ab7e9e16d8b5e079d98cb15 Mon Sep 17 00:00:00 2001 From: Chris Frey Date: Wed, 4 Jun 2008 18:24:29 -0400 Subject: [PATCH] Added ppp options and chat script for Sprint Added ppp options and chat script for Sprint, based on Andy Herkey's mailing list report. --- AUTHORS | 2 ++ ChangeLog | 2 ++ debian/rules | 4 +-- ppp/barry-sprint | 80 +++++++++++++++++++++++++++++++++++++++++++++++++++ ppp/barry-sprint.chat | 14 +++++++++ rpm/barry.spec | 4 +++ 6 files changed, 104 insertions(+), 2 deletions(-) create mode 100644 ppp/barry-sprint create mode 100644 ppp/barry-sprint.chat diff --git a/AUTHORS b/AUTHORS index e9e415f7..07b1ba7f 100644 --- a/AUTHORS +++ b/AUTHORS @@ -27,6 +27,8 @@ Contributors (code and otherwise) in alphabetical order by last name: Ron Gage - CVS testing - reverse engineering Service Book record + Andy Herkey + - sample ppp chat script for Sprint Jonathan Hudson - big endian testing and patches Duncan Mak diff --git a/ChangeLog b/ChangeLog index 44d0772d..8dc6a7cd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,8 @@ Release: version 0.13 - 2008/06/?? - added instructions for building from tarball - added bugs.php and contact.php pages - fixed missing and mis-dated copyright notices in src/ + - added ppp options and chat script for Sprint, based on + Andy Herkey's mailing list report 2008/05/30 - added Ubuntu 8.04 to release build scripts 2008/05/29 diff --git a/debian/rules b/debian/rules index 9b93dba3..2d9fe877 100755 --- a/debian/rules +++ b/debian/rules @@ -32,9 +32,9 @@ install/barry-util:: install -m 0644 $(CURDIR)/modprobe/blacklist-berry_charge $(CURDIR)/debian/barry-util/etc/modprobe.d/blacklist-berry_charge # Install default ppp options and chat scripts install -d $(CURDIR)/debian/barry-util/etc/ppp/peers - install -m 0644 $(CURDIR)/ppp/barry-rogers $(CURDIR)/ppp/barry-verizon $(CURDIR)/debian/barry-util/etc/ppp/peers + install -m 0644 $(CURDIR)/ppp/barry-rogers $(CURDIR)/ppp/barry-verizon $(CURDIR)/ppp/barry-sprint $(CURDIR)/debian/barry-util/etc/ppp/peers install -d $(CURDIR)/debian/barry-util/etc/chatscripts - install -m 0640 $(CURDIR)/ppp/barry-rogers.chat $(CURDIR)/ppp/barry-verizon.chat $(CURDIR)/debian/barry-util/etc/chatscripts + install -m 0640 $(CURDIR)/ppp/barry-rogers.chat $(CURDIR)/ppp/barry-verizon.chat $(CURDIR)/ppp/barry-sprint.chat $(CURDIR)/debian/barry-util/etc/chatscripts post-patches:: @test -x $(DEB_SRCDIR)/configure && echo "allready autoreconf" || (cd $(DEB_SRCDIR) && autoreconf -i) diff --git a/ppp/barry-sprint b/ppp/barry-sprint new file mode 100644 index 00000000..48e4b048 --- /dev/null +++ b/ppp/barry-sprint @@ -0,0 +1,80 @@ +# +# Some of these options found documented at: +# http://wiki.colar.net/tethering_with_blackberry_pearl_on_linux +# +# Others are based on the peer file in XmBlackBerry +# +# Please send all working peer files to cdfrey@foursquare.net, so we can +# build a library of peer files for different carriers. +# + +connect "/usr/sbin/chat -f /etc/chatscripts/barry-sprint.chat" + +# +# authentication options - no need for ISP to authenticate to us, but +# we may need a login here: user/password/name +# +noauth +user wapuser +password wap +name wapuser + +# +# handle the default route and DNS +# +#nodefaultroute +defaultroute +usepeerdns + +# +# disable unsupported options +# +noipdefault +nodetach +novj +nodeflate +nobsdcomp +noaccomp +#default-asyncmap +nocrtscts +nopcomp +nomagic + +passive + +#nomultilink +ipcp-restart 7 +ipcp-accept-local +ipcp-accept-remote +# need lcp-echo turned off, at least for tmobile, otherwise c0onnectin +# disconnects after few mn of inactivity. +# thanks to loon for this info +lcp-echo-interval 0 +lcp-echo-failure 999 + + +# +# limit size of packets +# +mtu 1492 + +# +# operate in debug mode +# +debug +#debug debug debug + +# +# call pppob for the USB link +# +pty "/usr/sbin/pppob" + + +# +# unused options +# + +#modem +## refused anyway, no point in trying every time +#novj + diff --git a/ppp/barry-sprint.chat b/ppp/barry-sprint.chat new file mode 100644 index 00000000..10bb8678 --- /dev/null +++ b/ppp/barry-sprint.chat @@ -0,0 +1,14 @@ +# +# This sample chat script was reported to the mailing list by Andy Herkey, +# for his Sprint provider. +# +# Please send all working peer files to cdfrey@foursquare.net, so we can +# build a library of peer files for different carriers. +# +ABORT ERROR +'' AT&F +OK ATZ +OK ATI +OK ATDT#777 +CONNECT + diff --git a/rpm/barry.spec b/rpm/barry.spec index 166cb2c4..0c13073b 100644 --- a/rpm/barry.spec +++ b/rpm/barry.spec @@ -144,9 +144,11 @@ cd ../ %{__mkdir_p} %{buildroot}%{_sysconfdir}/ppp/peers %{__cp} ppp/barry-rogers %{buildroot}%{_sysconfdir}/ppp/peers/ %{__cp} ppp/barry-verizon %{buildroot}%{_sysconfdir}/ppp/peers/ +%{__cp} ppp/barry-sprint %{buildroot}%{_sysconfdir}/ppp/peers/ %{__mkdir_p} %{buildroot}%{_sysconfdir}/chatscripts %{__cp} ppp/barry-rogers.chat %{buildroot}%{_sysconfdir}/chatscripts/ %{__cp} ppp/barry-verizon.chat %{buildroot}%{_sysconfdir}/chatscripts/ +%{__cp} ppp/barry-sprint.chat %{buildroot}%{_sysconfdir}/chatscripts/ # gui tree %if %{with_gui} @@ -201,8 +203,10 @@ cd ../ %attr(0644,root,root) %config %{_sysconfdir}/modprobe.d/blacklist-berry_charge %attr(0644,root,root) %config %{_sysconfdir}/ppp/peers/barry-rogers %attr(0644,root,root) %config %{_sysconfdir}/ppp/peers/barry-verizon +%attr(0644,root,root) %config %{_sysconfdir}/ppp/peers/barry-sprint %attr(0640,root,root) %config %{_sysconfdir}/chatscripts/barry-rogers.chat %attr(0640,root,root) %config %{_sysconfdir}/chatscripts/barry-verizon.chat +%attr(0640,root,root) %config %{_sysconfdir}/chatscripts/barry-sprint.chat %doc COPYING %if %{with_gui} -- 2.11.4.GIT