On Wed, Oct 12, 2011 at 2:23 PM, Tom H <[email protected]> wrote: > On Wed, Oct 12, 2011 at 12:42 PM, carlopmart <[email protected]> wrote: >> >> Is it possible under SL6.1 to run a script (or insert commands in >> ifcfg-ethX files) when a nic is up, immediatly after network script runs?? >> Like for example it can do with debian/ubuntu: post-up post-down. > > "/etc/sysconfig/network-scripts/ifup" calls > "/etc/sysconfig/network-scripts/ifup-pre-local" and > "/etc/sysconfig/network-scripts/ifup-post" calls > "/etc/sysconfig/network-scripts/ifup-local". > > You can also create udev rules in "/etc/udev/rules.d".
Copy/paste mistakes: it's "/sbin/ifup-pre-local" and "/sbin/ifup-local". Sorry.
