Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Nov 2019 16:34:29 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 242111] devd.conf(5) attach rule doesn't work for USB devices
Message-ID:  <bug-242111-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242111

            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@FreeBSD.org
          Reporter: yuri@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 app=
ear?




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

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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-242111-227>