wmppp.app [WAS-Re: asmodem]

David Mihm (davemann@ionet.net)
Thu, 30 Apr 1998 02:12:10 -0500 (CDT)


On Wed, 29 Apr 1998, John Gruenenfelder wrote:

> On Wed, 29 Apr 1998, Jonathan Kolb wrote:
> >
> >I've since gotten wmppp from http://windowmaker.kimitsu.com it's a great
> >package, shows you an xload-ish display for your connection.  Right now
> >it has a title on it, but that's supposed to go away soon.  My advice
> >would be to try that.
> >
> >Sincerely,
> >  Jonathan Kolb
> 
> Well, I downloaded wmppp.  I guess I won't be worrying about asmodem since
> wmppp is MUCH nicer, IMO.  The version I downloaded didn't have a title and I
> put it into my Wharf.  There seems to be a bug in Wharf, though, dealing with
> pictures larger than 60x60 (or maybe it was 64x64).  Wmppp is just a little
> bit larger than that so it gets shifted over a little.
> 
> --John Gruenenfelder
> 

I have just sent off a suggestion to the wmppp.app folks about using the
getmodemspeed as non-SUID and parsing chat's connect-errors fileinstead .
If anyone would like to avoid having to use "chat -v" and dumping wads of
chat info as well as clear text login password into your /var/log/messages
file, here's the scoop:

-------------------------------------------------------------------------
# diff.wmppp-1.2
--- getmodemspeed-orig.c	Tue Apr 28 18:29:07 1998
+++ getmodemspeed.c	Thu Apr 30 00:21:39 1998
@@ -7,7 +7,7 @@
 	
 	
 
-	fd = popen("tac /var/log/messages | grep CONNECT | head -1", "r");
+	fd = popen("tac /etc/ppp/connect-errors | grep CONNECT | head -1", "r");
 
 	while (fgets(temp, 256, fd)) {
 		printf("%s", temp);
-------------------------------------------------------------------------------
--- Makefile-orig	Thu Apr 30 00:36:25 1998
+++ Makefile	Thu Apr 30 00:38:59 1998
@@ -22,7 +22,6 @@
 	cp getmodemspeed /etc/ppp/
 	chmod 755 /etc/ppp/getmodemspeed
 	chown root.root /etc/ppp/getmodemspeed
-	chmod +s /etc/ppp/getmodemspeed
 	cp sample.wmifsrc /etc/ppp/.wmifsrc
 	cp sample.wmppprc /etc/ppp/.wmppprc
 	chown root:root /etc/ppp/.wm*
-------------------------------------------------------------------------------

It's faily easy, and you'll have to add " 'REPORT'   'CONNECT' " to the
script that chat calls (via the -f).  I know this works on RH4.2, and
would pressume it works on RH5.0, as well as most "std" linux
installations (disclaimer: I dould be wrong - it's happened).
	Feel free to email me privately for further instructions :)

caveat: this pressumes you already have a working ppp method as I don't
want to go down that road with you (:
___________________________________________________________________
d a v i d  @  m i h m                          reality.sys corrupt!
davemann-at-ionet-dot-net                     reboot universe(y,n)?
www.ionet.net/~davemann/                                ICQ:4251923
-------------------------------------------------------------------
Key fingerprint =  E4 90 15 ED E5 9F 18 8A  B0 CC FF 68 61 36 4A 6F



--
   WWW:   http://www.afterstep.org/
   FTP:   ftp://ftp.afterstep.org/
   MAIL:  http://wormhole.eosys.com/mailing-lists/AfterStep-Info.html
   FAQ:   http://www.cs.purdue.edu/homes/zamboni/afterstep/FAQ.html

   To unsubscribe: echo unsubscribe | mail afterstep-request@eosys.com