On 10/6/07, <b class="gmail_sendername">Roland Dreier</b> <<a href="mailto:rdreier@cisco.com">rdreier@cisco.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I don't know that much about OFED or Red Hat-like distros.  But in<br>Debian/Ubuntu, I know that I can use the /etc/network/interfaces file<br>to specify arbitrary commands to run when an interface appears.  eg<br>from the interfaces(5) man page:
<br><br>       pre-up command<br>              Run
command before bringing the interface up.  If this<br>              command
fails then ifup aborts, refraining from marking<br>              the
interface as configured, prints an error message,<br>              and
exits with status 0.  This behavior may change in<br>              the future.<br><br>Seems like the same thing should be possible for other distros without<br>much trouble.</blockquote><div><br>
OK, AFAIK under both Red Hat and SLES there is a way to intall pre-up
and post-down hooks for the iftools, if this is what you were referring
to in "hot-plug", then we are on the same page, thanks.<br>
<br>
Or.<br>
 </div><br></div><br>