[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: PPPoE +Debian ?



Philipp Lehman <lehman@gmx.net> writes:

> On Tue, 24 Jul 2001, Case, Benjamin <bcase@Telecorp1.com> wrote:
> 
> >Where can I find documentation that will explain the install and usage of
> >PPPoE with Debian ?
> 
> If you're on woody/sid, simply install the pppoe deb and read the docs
> in /usr/share/doc/pppoe as well as the manpages.
> 
> If you're on potato, you can either use the outdated pppoe in potato
> (not recommended) or get the latest release of rp-pppoe from
> 
> 	http://www.roaringpenguin.com/pppoe/

There are some backported packages (mostly for running 2.4 on potato)
at deb http://people.debian.org/~bunk/debian potato main. 

pppoe 3.something is one of them. However, /usr/sbin/pppoe in that
package is a wrapper script that uses a bash feature (c style ++
operator) that was introduced after bash 2.03, so you either have to
patch /usr/sbin/pppoe or use pppoe.real in your
/etc/ppp/peers/dsl-provider file.

I have attached said patch below:

-Hilko

========================================cut here=======================
--- pppoe.orig	Wed Aug  1 19:12:40 2001
+++ pppoe	Wed Aug  1 19:17:44 2001
@@ -8,12 +8,14 @@
 if [ "$1" == "-I" ]; then
     iface="$2"
 fi
-args[$((index++))]=$1
+args[$index]=$1
+index=$((index+1))
 while shift; do
     if [ "$1" == "-I" ]; then
 	iface="$2"
     fi
-    args[$((index++))]=$1
+    args[$index]=$1
+    index=$((index+1))
 done
 
 # Bring the interface up.



Reply to: