From owner-freebsd-questions@FreeBSD.ORG Wed Apr 18 17:31:12 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 079BA16A404 for ; Wed, 18 Apr 2007 17:31:12 +0000 (UTC) (envelope-from j65nko@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.183]) by mx1.freebsd.org (Postfix) with ESMTP id BA88513C487 for ; Wed, 18 Apr 2007 17:31:11 +0000 (UTC) (envelope-from j65nko@gmail.com) Received: by py-out-1112.google.com with SMTP id f31so192184pyh for ; Wed, 18 Apr 2007 10:31:11 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=fWLxthXqtMgYu+n6Vygz+BkAQNmvZg5Ps+IE8gehtwsbFOTmMbdTOvJhlYnqPZerj0v/6KTarzbTJ9l/Mb7jUcmDs8h722LHalbjFqUPGsn6/XVYt9MtIHzwAsXHaShi3zZKvy1nco8lXy6008da5HeC7JqEF0p0HxBp5cSzu/U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=anoaR8VXQygcRizyEYddgHMArMivZmOyQZ5YG2DSoThpWYndn5Kk3DsaQ5vd0POoXELBa8yQ1nA9Y58z9A5EOxhLYxvWsoFGRscdDkbppiYWpwbn4g+5MAONvwHqMAsrgFmvARD57RMMH7aT+VK1SSQWGqwZPiFwwQpN/2yCRh4= Received: by 10.65.83.18 with SMTP id k18mr1470634qbl.1176915850260; Wed, 18 Apr 2007 10:04:10 -0700 (PDT) Received: by 10.65.250.12 with HTTP; Wed, 18 Apr 2007 10:04:09 -0700 (PDT) Message-ID: <19861fba0704181004t79d5d002x72c8be1249ba4b4e@mail.gmail.com> Date: Wed, 18 Apr 2007 19:04:09 +0200 From: J65nko To: freebsd-questions@freebsd.org In-Reply-To: <20070417145352.M39800@mscc.huji.ac.il> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070417145352.M39800@mscc.huji.ac.il> Cc: Ido Admon Subject: Re: Execute command upon interface initialization? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Apr 2007 17:31:12 -0000 On 4/17/07, 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? You can use a '/etc/start_if.' 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