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:
> 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
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..