From owner-freebsd-questions@FreeBSD.ORG Sat Apr 4 21:02:53 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 042461065670 for ; Sat, 4 Apr 2009 21:02:53 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from unsane.co.uk (unsane-pt.tunnel.tserv5.lon1.ipv6.he.net [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id 774A18FC1F for ; Sat, 4 Apr 2009 21:02:52 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from vhoffman-macbook.local ([IPv6:2001:470:9099:0:214:51ff:feed:712d]) (authenticated bits=0) by unsane.co.uk (8.14.3/8.14.0) with ESMTP id n34L4lx6086396 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Sat, 4 Apr 2009 22:04:47 +0100 (BST) (envelope-from vince@unsane.co.uk) Message-ID: <49D7CAFB.8050202@unsane.co.uk> Date: Sat, 04 Apr 2009 22:02:51 +0100 From: Vincent Hoffman User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1b3pre) Gecko/20081204 Thunderbird/3.0b1 MIME-Version: 1.0 To: o.roeschke@gmx.net References: <1238875988.2667.37.camel@phoenix.blechhirn.net> In-Reply-To: <1238875988.2667.37.camel@phoenix.blechhirn.net> X-Enigmail-Version: 0.96a Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Executing command on USB connect 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: Sat, 04 Apr 2009 21:02:53 -0000 On 4/4/09 21:13, Oliver Roeschke wrote: > Hi folks, > > I'm using a HP Laserjet P1006 on a freebsd with cups to make the printer > available on the network. > Since this modell is one of the crapy-cheap-laserjets it has some > firmware you have to upload, everytime the printer has lost power. > > Currently I'm doing this via a cron job once a hour, but it's not > satisfying, since the printer is located in the office of a customer and > at max he has to wait 1h until he can use the printer. > > So my question is, how can I execute the command which uploads the > firmware (which is nothing more than a 'cat firmware > /dev/ugen0.1') > whenever the printer is connected? > > Regards, > Olli > > > Sounds like a job for devd, there are a few examples in /etc/devd.conf that do firmware downloading which should be enough to get you started. Vince > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >