Date: Tue, 17 Apr 2007 18:16:36 +0200 From: Roland Smith <rsmith@xs4all.nl> To: Ido Admon <rhingael@mscc.huji.ac.il> Cc: freebsd-questions@freebsd.org Subject: Re: Execute command upon interface initialization? Message-ID: <20070417161636.GA29490@slackbox.xs4all.nl> In-Reply-To: <20070417145352.M39800@mscc.huji.ac.il> References: <20070417145352.M39800@mscc.huji.ac.il>
next in thread | previous in thread | raw e-mail | index | archive | help
--wRRV7LY7NUeQGEoC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. Roland --=20 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) --wRRV7LY7NUeQGEoC Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.3 (FreeBSD) iD8DBQFGJPLkEnfvsMMhpyURAnBQAKCgDbf/amkcgyvNuOD90oP/s3tgyQCfdS9/ HEPZU/j9nv/1CFqt8Ef4Hdg= =5mbA -----END PGP SIGNATURE----- --wRRV7LY7NUeQGEoC--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070417161636.GA29490>