sysconfig ifcfg-* support for running custom post-up scripts per interface?

Tomasz Torcz tomek at pipebreaker.pl
Fri Jan 22 09:13:38 UTC 2010


On Fri, Jan 22, 2010 at 11:01:37AM +0200, Pasi Kärkkäinen wrote:
> Hello,
> 
> Has there been any plans to support running custom post-up scripts for each interface, after "ifup <interface>" ?
> 
> Debian allows you to specify:
> 
> iface eth0 inet static
> 	..
> 	post-up /etc/network/if-up.d/fw.start
> 
> I'm looking for something similar for rhel/fedora.
> Any ideas? 
> 
> Maybe something like POST_UP="/path/script" in /etc/sysconfig/network-scripts/ifcfg-int

  You can drop a script into /etc/NetworkManager/dispatcher.d/ and check
parameters. IIRC $1 is interface name and $2 is state (up, down).

-- 
Tomasz Torcz                 "God, root, what's the difference?"
xmpp: zdzichubg at chrome.pl         "God is more forgiving."



More information about the devel mailing list