Lars Müller wrote:
On Mon, Oct 19, 2009 at 12:41:19PM -0500, Moby wrote: [ 8< ]
Now my next endeavor is going to be how to launch my own script when a dhcp interface comes up, and more importantly, how to pass dhcp information (ip address, default route etc) to my custom script, but that may end up being a question for another thread.
It is possible to call individual scripts per /etc/sysconfig/network/ifcfg-* file.
There you need to define POST_UP_SCRIPT which points to a script available from /etc/sysconfig/network/scripts/
Unbelievable but true this is documented in the ifup man page. ;)
Lars
Thanks Lars. I did indeed find the above in man ifup. I take that to mean I can create a script in /etc/sysconfig/network/script and then reference that script in /etc/sysconfig/network/ifcfg-dhcpif. The possible question I may have (still reading and trying to decide the best way to do this) is how dhcp data (most importantly default gateway) will be passed into my script. Thanks again. -- --Moby They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -- Benjamin Franklin -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org