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

Pasi Kärkkäinen pasik at iki.fi
Fri Jan 22 09:28:08 UTC 2010


On Fri, Jan 22, 2010 at 10:13:38AM +0100, Tomasz Torcz wrote:
> 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).
> 

Thanks for the tip. I'll look into that..

Would be nicer if it was directly in ifcfg-<interface> file though..

-- Pasi



More information about the devel mailing list