todbot / blink1-tool

Command-line tools and C library for blink(1) USB RGB LED
https://blink1.thingm.com/
Other
84 stars 15 forks source link

Could you supply FreeBSD devd rules for making the Blink(1) device available to non-root users? #74

Closed lgrant-cdg closed 2 months ago

lgrant-cdg commented 2 months ago

A set of udev rules are supplied for making the Blink(1) device available to non-root users on Linux systems.

FreeBSD does not use udev, but instead uses devd rules, which have a completely different format.

Here is an example of the rules for FreeBSD:

blink1.conf

notify 51 { match "system" "USB"; match "subsystem" "DEVICE"; match "type" "ATTACH"; match "vendor" "0x27b8"; match "product" "0x01ed"; action "chmod 666 /dev/$cdev";

The file goes in the /usr/local/etc/devd directory, and you should do a "service devd restart" and unplug/replug your Blink(1) device.

todbot commented 2 months ago

Thanks! I'll try these out on a VM shortly and add it to the repo.

todbot commented 2 months ago

Added and verified it works on FreeBSD 14.1. Thanks so much!

lgrant-cdg commented 2 months ago

Hi, Tod,

Thank you! Although I have set up several FreeBSD systems, I do not consider myself a FreeBSD expert, and every time, I have to figure out how devd rules work again. Having them added will save me from re-educating myself each time.

Best regards,

Lynn

On Wed, Jun 12, 2024 at 1:16 PM Tod Kurt @.***> wrote:

Added and verified it works on FreeBSD 14.1. Thanks so much!

— Reply to this email directly, view it on GitHub https://github.com/todbot/blink1-tool/issues/74#issuecomment-2163735068, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAC3LWID376QPVI4SX4XRC3ZHCNBTAVCNFSM6AAAAABJFZLCQSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRTG4ZTKMBWHA . You are receiving this because you authored the thread.Message ID: @.***>