[Bug 242111] devd.conf(5) attach rule doesn't work for USB devices

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Nov 20 16:34:29 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242111

            Bug ID: 242111
           Summary: devd.conf(5) attach rule doesn't work for USB devices
           Product: Base System
           Version: 12.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: misc
          Assignee: bugs at FreeBSD.org
          Reporter: yuri at freebsd.org

I tried to use this rule:
> attach 0 {
>         match "vendor"  "0x04b4";
>         match "product" "0x6022";
>         action "/bin/echo hello $device-name >> /tmp/dev.txt";
> };

but it doesn't work (no /tmp/dev.txt appears).


But this rule works:
> notify 100 {
>         match "system"          "USB";
>         match "subsystem"       "DEVICE";
>         match "type"            "ATTACH";
>         match "vendor"  "0x04b4";
>         match "product" "0x6022";
>         action "/bin/echo hello $device-name >> /tmp/dev.txt";
> };


Some other system-supplied rules in /etc/devd.conf use the first form too,
which means that they also wouldn't work when the matching device would appear?




> ugen8.5: <vendor 0x04b4 product 0x6022> at usbus8

FreeBSD xx.xx.xx 12.0-STABLE FreeBSD 12.0-STABLE r347548 GENERIC  amd64

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list