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

Re: DSL connections using ppp/pppoe, and netstart in /etc/rc



Moved to misc...

/etc/rc.local
...
###ADSL-STARTUP###

if [ -f /etc/ppp/adsl.sh ]; then
         ./etc/ppp/adsl.sh; echo ' Starting ADSL...'
fi
...

$ sudo cat /etc/ppp/adsl.sh
#!/bin/sh
ifconfig dc0 up
ppp -ddial pppoe

-RZR

Paul Galbraith wrote:
 > I've got my DSL connection to the world configured to start from my
 > hostname.if file via a "!ppp -background pppoe" command.  Maybe 
that's not
 > the Right Way, but it seems clean to me.
 >
 > Unfortunately, /etc/rc blows away the PPP pid file 
(/var/run/tun0.pid) soon
 > after running netstart.  Is there any chance this could be changed so 
that
 > processes started from netstart won't have their pid files trashed?  Or
 > maybe someone could tell me a Better way to start my DSL connection?
 > Cheers,
 >
 > Paul