Execute command upon interface initialization?

Roland Smith rsmith at xs4all.nl
Tue Apr 17 16:16:38 UTC 2007

On Tue, Apr 17, 2007 at 06:02:25PM +0300, Ido Admon wrote:
> Hello list,
> I couldn't find any way to execute an arbitrary command upon network
> interface initialization. My situations is that I have and ethernet card
> that takes DHCP from a cables provider (not a fixed IP address) and I
> need to update a DynDNS hostname everytime it does (everytime the IP
> changes).
> I couldn't find a way to execute shell commands using the rc system or
> dhclient, what did I miss?

dhclient-script(8)? Maybe devd(8) will work as well.

> Sure I could just use cron but that's not very elegant.

On the other hand it is simple, which is a virtue in itself.

R.F.Smith                                   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20070417/0d6ad60c/attachment.pgp

More information about the freebsd-questions mailing list