Trying to define a devd rule doesn't work

Andriy Gapon avg at FreeBSD.org
Mon Feb 8 22:15:18 UTC 2021


On 08/02/2021 22:32, MR wrote:
> attach 1000 {
>         match "system"          "USB";
>         match "subsystem"       "INTERFACE";
>         match "type"            "ATTACH";
>         match "vendor" "0x1d50";
>         match "product" "0x6089";
>         action "chmod g+w /dev/$device-name";
> };

You should either use "notify 1000" or, if you keep "attach 1000", remove
system, subsystem and type matches.

-- 
Andriy Gapon


More information about the freebsd-hackers mailing list