the net.ppp0-script of the ppp-package, overwrites the /etc/ppp/chap-secrets file whenever net.ppp0 is executed. this isn't inherently bad (as the parameters are mostly ok). But in order to make it work smoothly with eagle-usb (a driver for the sagem800) a wildcard is necessary instead of the Peer-name.
the following diff does just that. It shouldn't break the ppp-package, but makes the eagle-package (http://eagle-usb.ath.cx) work.
note, that this is only necessary, if both packages are used in parallel (i have two adsl-modems), which should rarely happen.
Steps to Reproduce:
flo@basil /tmp $ emerge info
Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0,
System uname: 2.6.4-rc1-mm1 i686 AMD Athlon(TM) XP 2200+
Gentoo Base System version 220.127.116.11p1
ccache version 2.3 [enabled]
CFLAGS="-mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer"
FEATURES="autoaddcvs ccache sandbox"
USE="3dnow X alsa apm arts avi berkdb cdr crypt cups dga directfb doc dvd encode
esd foomaticdb gdbm ggi gif gpm gtk2 imap imlib innodb ipv6 jpeg libg++ libwww mad
mikmod mmx motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib
perl png python quicktime readline sdl slang spell sse ssl svga tcpd tetex truetype x86
xinerama xml2 xmms xv zlib"
Created attachment 26965 [details, diff]
changes Peer to wildcard ("*")
as described: changes the peer-name into wildcard, so eagle-usb works in
Is this really a good idea for general use? I just unwired this change in my own net.ppp0 so that I can have different passwords for different ppp connections without blasting all my passwords to each host I try to connect to...
Is it better perhaps to separate the PEER and the remotename?
Perhaps it is more appropriate to fix the eagle-usb driver?
I'm not sure if the driver is really broken. I just happened to make both
modems work with this hack. I don't even have the modem anymore, and the bug
might be fixed already...
the actual net.ppp0 will be replaced by a new ppp net module of the upcoming
this bug will remain open until net.ppp0 will be removed.
the net.ppp0 has been removed in net-dialup/ppp-2.4.3-r10, which will become
stable at the same moment with sys-apps/baselayout-1.12.0
FYI: now all kinds of PPP connections (serial, PPPoE, PPPoA) are handled by the
pppd net module found in >=sys-apps/baselayout-1.12.0_pre11.