Date: Sat, 04 Apr 2009 22:02:51 +0100 From: Vincent Hoffman <vince@unsane.co.uk> To: o.roeschke@gmx.net Cc: freebsd-questions@freebsd.org Subject: Re: Executing command on USB connect Message-ID: <49D7CAFB.8050202@unsane.co.uk> In-Reply-To: <1238875988.2667.37.camel@phoenix.blechhirn.net> References: <1238875988.2667.37.camel@phoenix.blechhirn.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49D7CAFB.8050202>