Re: Run commands automatically when bringing up/down network interfaces?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 9/14/2011 1:26 PM, Edward Morbius wrote:
> I'm looking for a capability similar to Debian/Ubuntu's pre/post up/down
> network commands capability.

If you look in /etc/sysconfig/network-scripts/ifup, you'll see that it 
will call /sbin/ifup-pre-local if it exists, before bringing up the 
network interface.

That script also calls .../network-scripts/ifup-post after bringing up 
the network interface, which in turn will call /sbin/ifup-local, if it 
exists, as its last step.

Neither is interface-specific, but they get the interface name passed to 
them, so if you needed to do something different for different 
interfaces, you could.
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux