Re: how do your hotplugd(8) scripts look? mine is messy and needs cleaning.

Kirill A. Korinsky <[email protected]>
Newsgroups gmane.os.openbsd.misc
Message-ID <[email protected]>
On Thu, 11 Jun 2026 14:29:58 +0200,
Manuel Giraud <[email protected]> wrote:
> 
> Kirill A. Korinsky <[email protected]> writes:
> 
> > On Thu, 11 Jun 2026 11:11:58 +0200,
> > Stuart Henderson <[email protected]> wrote:
> >> 
> >> On 2026-06-11, Alexandre Ratchov <[email protected]> wrote:
> >> > I'd suggest simply changing /dev/video* ownership to your user id,
> >> > after each upgrade.
> >> 
> >> rc.local is not a bad place to do that.
> >> 
> >
> > I think this is cleaner:
> >
> > ~ $ grep video /upgrade.site
> > echo 'chown USER /dev/video*' >>/etc/rc.firsttime
> > ~ $ 
> 
> For xenodm users, I thought that it was the work of
> /etc/X11/xenodm/GiveConsole:
> 
> chown $USER:$GROUP /dev/video0
> 
> and /etc/X11/xenodm/TakeConsole:
> 
> chown root:wheel /dev/video0

em? Provided scripts changes ownership of /dev/dri/card0 and not
/dev/video0, also, here may be connected more than one webcam.

Modern laptop has IR webcam, embeded webcam and user may use USB one.

-- 
wbr, Kirill
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.