From owner-freebsd-questions@FreeBSD.ORG Sun Feb 19 05:41:19 2012 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 961A5106566C for ; Sun, 19 Feb 2012 05:41:19 +0000 (UTC) (envelope-from gobble.wa@gmail.com) Received: from mail-ww0-f42.google.com (mail-ww0-f42.google.com [74.125.82.42]) by mx1.freebsd.org (Postfix) with ESMTP id 1FAD48FC12 for ; Sun, 19 Feb 2012 05:41:18 +0000 (UTC) Received: by wgbgn7 with SMTP id gn7so2342202wgb.1 for ; Sat, 18 Feb 2012 21:41:18 -0800 (PST) Received-SPF: pass (google.com: domain of gobble.wa@gmail.com designates 10.180.94.68 as permitted sender) client-ip=10.180.94.68; Authentication-Results: mr.google.com; spf=pass (google.com: domain of gobble.wa@gmail.com designates 10.180.94.68 as permitted sender) smtp.mail=gobble.wa@gmail.com; dkim=pass header.i=gobble.wa@gmail.com Received: from mr.google.com ([10.180.94.68]) by 10.180.94.68 with SMTP id da4mr7726514wib.22.1329630078120 (num_hops = 1); Sat, 18 Feb 2012 21:41:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=pypjNkP1HVMOdKYTzYNc+S5uVJ6smYXl/51V9sz1eqg=; b=t2zMOsc8UvsG56UmpjfvEzoSQA4oorEQcNtthaf1Id1sr+9qC+nGx3JOw+8gaAPchb ENrxYmz8KCt73EEyLjT8d/ABe85c4LK0x3uUq3cuOylzqagtHZ/ep+bp8ifTSZuRBnSX GHzXoI68pEUEjJuSG0fRTHLFwDk739rLiJFpg= MIME-Version: 1.0 Received: by 10.180.94.68 with SMTP id da4mr6524914wib.22.1329630078066; Sat, 18 Feb 2012 21:41:18 -0800 (PST) Received: by 10.216.235.139 with HTTP; Sat, 18 Feb 2012 21:41:18 -0800 (PST) In-Reply-To: <4F407C9D.2050309@herveybayaustralia.com.au> References: <201202190316.q1J3Gxbj081369@mail.r-bonomi.com> <4F407C9D.2050309@herveybayaustralia.com.au> Date: Sat, 18 Feb 2012 21:41:18 -0800 Message-ID: From: Waitman Gobble To: FreeBSD-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: webcamd and device numbering 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: Sun, 19 Feb 2012 05:41:19 -0000 On Sat, Feb 18, 2012 at 8:37 PM, Da Rock < freebsd-questions@herveybayaustralia.com.au> wrote: > On 02/19/12 13:16, Robert Bonomi wrote: > >> From owner-freebsd-questions@**freebsd.org Sat Feb 18 20:42:50 2012 >>> Date: Sun, 19 Feb 2012 12:32:42 +1000 >>> From: Da Rock >>> > >>> To: FreeBSD Questions >>> > >>> Subject: webcamd and device numbering >>> >>> >>> I've been struggling with this on my own for ages now, and I was >>> determined to try and sort it myself. But I'll now eat my humble pie and >>> ask for some help :) >>> >>> I have (I believe I have mentioned this before) 5 dvb tuners in a >>> FreeBSD server (8.2): 1 cx88, 2 DiVico dual tuners (that totals 4 >>> amongst just the DiVico's). I'm using webcamd to use these (thank God I >>> can get away from Linux!), and they work fine except I have to run ln -s >>> to link them to the right places after every reboot (Only the Divico's >>> use webcamd). So they should look like this: >>> >>> $ls /dev/dvb/ >>> adapter0 adapter1 adapter2 adapter3 >>> >>> instead: >>> >>> ls /dev/dvb/ >>> adapter0 adapter16 adapter24 adapter8 >>> >>> At least a couple of ways to approach this. >> 1) (a bad idea, but simple) wrap 'webcamd' in a script that makes the >> symlinks before invoking the actual executable. >> > I don't think that will work because webcamd does the actually device > attach itself. Putting in the symlinks first _cant_ happen because there is > nothing to link to. > >> 2) look at devd.conf(5) and add stuff there to create the links for >> {1,2,3} >> > Again, same problem. webcamd does the work there to attach the devices - > but it uses hal to notify and obtain the numbering. I haven't found a way > to turn this off as yet. Originally I don't think it used hal at all, > somewhere along the line they decided to make inextricable. > > I may be stuck with the cron job :/ I wonder if I can get it to just > happen at boot... my spidey senses are tingling. I'll have to remember > where I saw that. > > ______________________________**_________________ > 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 " > I agree it's a crappy solution, (at least?) in principal. I had a drive that stubbornly refused to mount at boot, a weird harold situation and you know - like you want to throw the freaking thing out the window.. check/mount on cron was a band-aid approach, it worked. Waitman Gobble San Jose California USA