[ilugd] Running scripts on interface activation

2008-05-07 Thread Sandip Bhattacharya
This might be an ubuntu specific query.

I would like certain scripts to be run after an interface comes up(like
tun0) and another to be run after the interface goes down.

Now I am sure there is a mechanism to trap this, but for some frustating
reason am unable to find it. I would appreciate a
clue to go further on this.

- Sandip

-- 
Sandip Bhattacharya

___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Next Event: http://freed.in - February 22-24, 2008
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/


Re: [ilugd] Running scripts on interface activation

2008-05-07 Thread Jasbir Khehra
On 5/7/08, Sandip Bhattacharya [EMAIL PROTECTED] wrote:
 This might be an ubuntu specific query.

  I would like certain scripts to be run after an interface comes up(like
  tun0) and another to be run after the interface goes down.

  Now I am sure there is a mechanism to trap this, but for some frustating
  reason am unable to find it. I would appreciate a
  clue to go further on this.

man interfaces
( search for iface options )

___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Next Event: http://freed.in - February 22-24, 2008
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/


Re: [ilugd] Running scripts on interface activation

2008-05-07 Thread Sandip Bhattacharya
+++ Jasbir Khehra [08/05/08 00:30 +0530]:
On 5/7/08, Sandip Bhattacharya [EMAIL PROTECTED] wrote:
 This might be an ubuntu specific query.

  I would like certain scripts to be run after an interface comes up(like
  tun0) and another to be run after the interface goes down.

  Now I am sure there is a mechanism to trap this, but for some frustating
  reason am unable to find it. I would appreciate a
  clue to go further on this.

man interfaces
( search for iface options )

I use NetworkManager. Doesn't it ignore /etc/network/interfaces?

- Sandip


-- 
Sandip Bhattacharya

___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Next Event: http://freed.in - February 22-24, 2008
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/