From owner-freebsd-questions@FreeBSD.ORG Fri Jun 15 10:53:27 2012 Return-Path: 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 8011F106566C for ; Fri, 15 Jun 2012 10:53:27 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id 384B88FC17 for ; Fri, 15 Jun 2012 10:53:27 +0000 (UTC) Received: from [89.204.130.112] (helo=tiny.Sisis.de) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1SfU9d-0003KZ-Hk for freebsd-questions@freebsd.org; Fri, 15 Jun 2012 12:53:25 +0200 Received: from tiny.Sisis.de (localhost [127.0.0.1]) by tiny.Sisis.de (8.14.5/8.14.3) with ESMTP id q5FArNRg001944 for ; Fri, 15 Jun 2012 12:53:23 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by tiny.Sisis.de (8.14.5/8.14.3/Submit) id q5FArMUG001943 for freebsd-questions@freebsd.org; Fri, 15 Jun 2012 12:53:22 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: tiny.Sisis.de: guru set sender to guru@unixarea.de using -f Date: Fri, 15 Jun 2012 12:53:22 +0200 From: Matthias Apitz To: freebsd-questions@freebsd.org Message-ID: <20120615105321.GA1904@tiny.Sisis.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Operating-System: FreeBSD 10.0-CURRENT r226986 (i386) User-Agent: Mutt/1.5.21 (2010-09-15) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 89.204.130.112 Subject: Re: Trigger action on link state change X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jun 2012 10:53:27 -0000 El día Friday, June 15, 2012 a las 12:32:15PM +0200, Michael Ross escribió: > > Hi all, > > i was wondering if there is any ready-made method to trigger an action as > soon as a link changes state. > Along the lines of > onifdown_em0="/run/this/script" > in rc.conf Hi, check the man pages of devd(8) and devd.conf(5) HIH matthias -- Matthias Apitz e - w http://www.unixarea.de/ UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5