Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Feb 2012 21:41:18 -0800
From:      Waitman Gobble <gobble.wa@gmail.com>
To:        FreeBSD-questions@freebsd.org
Subject:   Re: webcamd and device numbering
Message-ID:  <CAFuo_fwN-95-2VfPw4Awy3=YNUjiyf4cazBufjYLsrEhiXBRLg@mail.gmail.com>
In-Reply-To: <4F407C9D.2050309@herveybayaustralia.com.au>
References:  <201202190316.q1J3Gxbj081369@mail.r-bonomi.com> <4F407C9D.2050309@herveybayaustralia.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
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<owner-freebsd-questions@freebsd.org> Sat Feb 18 20:42:50 2012
>>> Date: Sun, 19 Feb 2012 12:32:42 +1000
>>> From: Da Rock<freebsd-questions@**herveybayaustralia.com.au<freebsd-questions@herveybayaustralia.com.au>
>>> >
>>> To: FreeBSD Questions<freebsd-questions@**freebsd.org<freebsd-questions@freebsd.org>
>>> >
>>> 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<http://lists.freebsd.org/mailman/listinfo/freebsd-questions>;
> To unsubscribe, send any mail to "freebsd-questions-**
> unsubscribe@freebsd.org <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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFuo_fwN-95-2VfPw4Awy3=YNUjiyf4cazBufjYLsrEhiXBRLg>