From 3d2817b418dee8b0bac258d65e485bd34a79a20b Mon Sep 17 00:00:00 2001 From: Chris Frey Date: Fri, 31 Dec 2010 17:23:26 -0500 Subject: [PATCH] ppp: added barry-minimal Sometimes it may be better to let pppd handle all the handshaking. This is the approach that the Bluetooth GUI uses on Fedora. I have found that in the case of "Could not determine local IP address" errors, this setup can help. --- ChangeLog | 2 ++ debian/rules | 2 ++ ppp/barry-minimal | 23 +++++++++++++++++++++++ ppp/barry-minimal.chat | 26 ++++++++++++++++++++++++++ rpm/barry.spec | 4 ++++ 5 files changed, 57 insertions(+) create mode 100644 ppp/barry-minimal create mode 100644 ppp/barry-minimal.chat diff --git a/ChangeLog b/ChangeLog index 389e42eb..8df28b02 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,8 @@ Release: version 0.17.0 - 2010/01/?? - merged translation and general bug fixes from Nicolas Vivien - lib: merged Nicolas Vivien's BlackBerry.alx parser - lib: changed pointer handling in src/a_*.h to use shared_ptr<> + - ppp: added barry-minimal, which may help in the case of + "Could not determine local IP address" errors 2010/12/24 - lib: cleaned up Clear() functions in all record classes Primarily fixed some missing variables. diff --git a/debian/rules b/debian/rules index a8d7569c..43b78ee0 100755 --- a/debian/rules +++ b/debian/rules @@ -37,6 +37,7 @@ install/barry-util:: install -d $(CURDIR)/debian/barry-util/etc/ppp/peers install -m 0644 \ $(DEB_SRCDIR)/ppp/barry-rogers \ + $(DEB_SRCDIR)/ppp/barry-minimal \ $(DEB_SRCDIR)/ppp/barry-verizon \ $(DEB_SRCDIR)/ppp/barry-sprint \ $(DEB_SRCDIR)/ppp/barry-telus \ @@ -50,6 +51,7 @@ install/barry-util:: install -d $(CURDIR)/debian/barry-util/etc/chatscripts install -m 0640 \ $(DEB_SRCDIR)/ppp/barry-rogers.chat \ + $(DEB_SRCDIR)/ppp/barry-minimal.chat \ $(DEB_SRCDIR)/ppp/barry-verizon.chat \ $(DEB_SRCDIR)/ppp/barry-sprint.chat \ $(DEB_SRCDIR)/ppp/barry-telus.chat \ diff --git a/ppp/barry-minimal b/ppp/barry-minimal new file mode 100644 index 00000000..63fd5fb0 --- /dev/null +++ b/ppp/barry-minimal @@ -0,0 +1,23 @@ +# See the README file in the source tree for notes and documentation + +# This is based on connection data for a Rogers provider. +# Sometimes it is better to let pppd do the handshaking for us. +# In cases where barry-rogers gives the error +# "Could not determine local IP address", this setup may work. + +connect "/usr/sbin/chat -f /etc/chatscripts/barry-minimal.chat" +pty "/usr/sbin/pppob" + +user wapuser1 + +nodetach +defaultroute +noipdefault +noauth +usepeerdns + +lcp-echo-failure 0 +lcp-echo-interval 0 + +debug + diff --git a/ppp/barry-minimal.chat b/ppp/barry-minimal.chat new file mode 100644 index 00000000..1f32fb97 --- /dev/null +++ b/ppp/barry-minimal.chat @@ -0,0 +1,26 @@ +# +# 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. +# +ABORT ERROR +'' AT&F +OK ATZ +OK ATI +OK AT+CNUM +OK AT+CSQ +# Some Blackberries reboot on this command +#OK AT+CREG? +#OK AT+CGDCONT? +#OK AT+CGQREQ? +#OK AT+CGQMIN? +#OK AT+CGATT? +#OK AT+CGREG? +OK AT+CGDCONT=1,"IP","internet.com" +OK ATDT*99# +CONNECT + diff --git a/rpm/barry.spec b/rpm/barry.spec index f66a39db..c336a3e4 100644 --- a/rpm/barry.spec +++ b/rpm/barry.spec @@ -166,6 +166,7 @@ cd ../ %{__cp} modprobe/blacklist-berry_charge.conf %{buildroot}%{_sysconfdir}/modprobe.d/ %{__mkdir_p} %{buildroot}%{_sysconfdir}/ppp/peers %{__cp} ppp/barry-rogers %{buildroot}%{_sysconfdir}/ppp/peers/ +%{__cp} ppp/barry-minimal %{buildroot}%{_sysconfdir}/ppp/peers/ %{__cp} ppp/barry-verizon %{buildroot}%{_sysconfdir}/ppp/peers/ %{__cp} ppp/barry-sprint %{buildroot}%{_sysconfdir}/ppp/peers/ %{__cp} ppp/barry-telus %{buildroot}%{_sysconfdir}/ppp/peers/ @@ -177,6 +178,7 @@ cd ../ %{__cp} ppp/barry-orange-spain %{buildroot}%{_sysconfdir}/ppp/peers/ %{__mkdir_p} %{buildroot}%{_sysconfdir}/chatscripts %{__cp} ppp/barry-rogers.chat %{buildroot}%{_sysconfdir}/chatscripts/ +%{__cp} ppp/barry-minimal.chat %{buildroot}%{_sysconfdir}/chatscripts/ %{__cp} ppp/barry-verizon.chat %{buildroot}%{_sysconfdir}/chatscripts/ %{__cp} ppp/barry-sprint.chat %{buildroot}%{_sysconfdir}/chatscripts/ %{__cp} ppp/barry-telus.chat %{buildroot}%{_sysconfdir}/chatscripts/ @@ -274,6 +276,7 @@ cd ../ %attr(0644,root,root) %config %{_sysconfdir}/udev/rules.d/* %attr(0644,root,root) %config %{_sysconfdir}/modprobe.d/blacklist-berry_charge.conf %attr(0644,root,root) %config %{_sysconfdir}/ppp/peers/barry-rogers +%attr(0644,root,root) %config %{_sysconfdir}/ppp/peers/barry-minimal %attr(0644,root,root) %config %{_sysconfdir}/ppp/peers/barry-verizon %attr(0644,root,root) %config %{_sysconfdir}/ppp/peers/barry-sprint %attr(0644,root,root) %config %{_sysconfdir}/ppp/peers/barry-telus @@ -284,6 +287,7 @@ cd ../ %attr(0644,root,root) %config %{_sysconfdir}/ppp/peers/barry-kpn %attr(0644,root,root) %config %{_sysconfdir}/ppp/peers/barry-orange-spain %attr(0640,root,root) %config %{_sysconfdir}/chatscripts/barry-rogers.chat +%attr(0640,root,root) %config %{_sysconfdir}/chatscripts/barry-minimal.chat %attr(0640,root,root) %config %{_sysconfdir}/chatscripts/barry-verizon.chat %attr(0640,root,root) %config %{_sysconfdir}/chatscripts/barry-sprint.chat %attr(0640,root,root) %config %{_sysconfdir}/chatscripts/barry-telus.chat -- 2.11.4.GIT