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

Re: roaring penguin @ startup



>On Tue, Jul 24, 2001 at 10:18:55AM -0700, Jaye Inabnit ke6sls wrote:
>| 
>|     Greets,
>| 
>| I pulled down the roaring penguin pppoe package. after running the script, it 
>| installed the needed software and worked very well out of the box. Question, 
>| has anyone found a good way to start it on boot? I attempted to make a 
>| symlink in rc2.d for it, but it complains.

[Replying to the original poster]

pppoe is started by pppd, you shouldn't launch it directly. The Debian
way of doing this is to simply rename /etc/ppp/no_ppp_on_boot to
/etc/ppp/ppp_on_boot and customize as needed. Mine looks like this:

-----/etc/ppp/ppp_on_boot-----
#!/bin/sh
PPPD=/usr/sbin/pppd

ifconfig eth1 up 0.0.0.0 mtu 1500 -arp
$PPPD call provider
-----

Of course, pppd needs a /etc/ppp/peers/provider file as usual. Here's
a sample:

-----/etc/ppp/peers/provider-----
user "******"
pty "pppoe -I eth1 -T 80 -m 1452 -p /var/run/pppoe.pid"
connect /bin/true
noipdefault
defaultroute
hide-password
lcp-echo-interval 20
lcp-echo-failure 3
noauth
demand
idle 300
lock
ipcp-accept-remote
ipcp-accept-local
noaccomp
nopcomp
nocrtscts
novj
novjccomp
nobsdcomp
nodeflate
noccp
-----

This is for dial-on-demand. BTW: rp-pppoe is actually in Debian, the
deb is simply called pppoe.

-- 
Philipp Lehman <lehman@gmx.net>



Reply to: