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

Manuel Giraud <[email protected]>
Newsgroups gmane.os.openbsd.misc
Message-ID <[email protected]>
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
-- 
Manuel Giraud
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.