ajacoutot d2e8650e22 Rework README after the recen ugen(4) default permissions change.
Also sync the READMEs as close as possible.
2019-12-14 13:02:28 +00:00
..
2014-10-08 12:06:21 +00:00
2019-06-15 09:14:19 +00:00

$OpenBSD: README,v 1.2 2019/12/14 13:02:29 ajacoutot Exp $

+-----------------------------------------------------------------------
| Running ${PKGSTEM} on OpenBSD
+-----------------------------------------------------------------------

Since USB reading of your camera will be handled by libusb, you need to allow
the user access to the corresponding USB endpoint. To do so, find
where your camera is attached to by using:
    $ usbdevs -v
then change the ownership accordingly.

e.g.
Controller /dev/usb0:
<...>
addr 03: 04e8:6860 SAMSUNG, SAMSUNG_Android
         high speed, power 96 mA, config 2, rev 4.00, iSerialNumber 9a0cef4c
         driver: umodem0
         driver: ugen0

# chown <username> /dev/ugen0.* /dev/usb0

To preserve your changes after a system update, use rc.local(8).
Alternatively, hotplugd(8) attach/detach scripts can automate this.