mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
+-----------------------------------------------------------------------
| 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.