FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 05-17-2010, 03:20 AM
Hendrik Boom
 
Default How to run a script when pppoe connection comes up?

I have a script that runs at boot time. It should really be rerun every
time my pppoe connection has come up and has created device ppp0 for me.
Evidently I have to invoke this script from someplace different from what
I'm doing now. Where?

-- hendrik


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: hsqcl9$ejc$1@dough.gmane.org">http://lists.debian.org/hsqcl9$ejc$1@dough.gmane.org
 
Old 05-17-2010, 04:50 AM
Cameron Hutchison
 
Default How to run a script when pppoe connection comes up?

Hendrik Boom <hendrik@topoi.pooq.com> writes:

>I have a script that runs at boot time. It should really be rerun every
>time my pppoe connection has come up and has created device ppp0 for me.
>Evidently I have to invoke this script from someplace different from what
>I'm doing now. Where?

After a ppp connection is established, pppd(8) runs the scripts in
/etc/ppp/ip-up.d . Check the man page for pppd(8) under the section
SCRIPTS. This describes which scripts are run when and what environment
variables are available.

The standard ppp runs the script /etc/ppp/ip-up when the link comes up.
Debian implements this script to run all the scripts in /etc/ppp/ip-up.d



--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 1b84.4bf0cb0f.d321a@getafix.xdna.net">http://lists.debian.org/1b84.4bf0cb0f.d321a@getafix.xdna.net
 
Old 05-17-2010, 06:13 PM
Hendrik Boom
 
Default How to run a script when pppoe connection comes up?

On Mon, 17 May 2010 04:50:23 +0000, Cameron Hutchison wrote:

> Hendrik Boom <hendrik@topoi.pooq.com> writes:
>
>>I have a script that runs at boot time. It should really be rerun every
>>time my pppoe connection has come up and has created device ppp0 for me.
>>Evidently I have to invoke this script from someplace different from
>>what I'm doing now. Where?
>
> After a ppp connection is established, pppd(8) runs the scripts in
> /etc/ppp/ip-up.d . Check the man page for pppd(8) under the section
> SCRIPTS. This describes which scripts are run when and what environment
> variables are available.
>
> The standard ppp runs the script /etc/ppp/ip-up when the link comes up.
> Debian implements this script to run all the scripts in /etc/ppp/ip-up.d

So pppoe is similar to ppp in this respect, though I suppose there are
some differences having to do with using the ethernet instead of a serial
link. Thanks.

-- hendrik



--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: hss0vh$cp8$1@dough.gmane.org">http://lists.debian.org/hss0vh$cp8$1@dough.gmane.org
 
Old 05-20-2010, 06:51 PM
Hendrik Boom
 
Default How to run a script when pppoe connection comes up?

On Mon, 17 May 2010 18:13:06 +0000, Hendrik Boom wrote:

> On Mon, 17 May 2010 04:50:23 +0000, Cameron Hutchison wrote:
>
>> Hendrik Boom <hendrik@topoi.pooq.com> writes:
>>
>>>I have a script that runs at boot time. It should really be rerun
>>>every time my pppoe connection has come up and has created device ppp0
>>>for me. Evidently I have to invoke this script from someplace different
>>>from what I'm doing now. Where?
>>
>> After a ppp connection is established, pppd(8) runs the scripts in
>> /etc/ppp/ip-up.d . Check the man page for pppd(8) under the section
>> SCRIPTS. This describes which scripts are run when and what environment
>> variables are available.
>>
>> The standard ppp runs the script /etc/ppp/ip-up when the link comes up.
>> Debian implements this script to run all the scripts in
>> /etc/ppp/ip-up.d
>
> So pppoe is similar to ppp in this respect, though I suppose there are
> some differences having to do with using the ethernet instead of a
> serial link. Thanks.
>
> -- hendrik

Thanks. It works like a charm.

-- hendrik


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: ht40c2$166$1@dough.gmane.org">http://lists.debian.org/ht40c2$166$1@dough.gmane.org
 

Thread Tools




All times are GMT. The time now is 04:27 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org