Date: Wed, 18 Apr 2007 19:04:09 +0200 From: J65nko <j65nko@gmail.com> To: freebsd-questions@freebsd.org Cc: Ido Admon <rhingael@mscc.huji.ac.il> Subject: Re: Execute command upon interface initialization? Message-ID: <19861fba0704181004t79d5d002x72c8be1249ba4b4e@mail.gmail.com> 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
On 4/17/07, Ido Admon <rhingael@mscc.huji.ac.il> 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? You can use a '/etc/start_if.<nic>' file. If your NIC is fxp0 then a '/etc/start_if.fxp0' file will be run or sourced by the 'rc' system. In http://www.bsdforums.org/forums/showthread.php?t=34607 this type of file is used to set a MTU of 1492
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19861fba0704181004t79d5d002x72c8be1249ba4b4e>