Summary: | devd no longer matches kernel/ugen events | ||
---|---|---|---|
Product: | Base System | Reporter: | Vladimir <w0wkin> |
Component: | misc | Assignee: | freebsd-bugs (Nobody) <bugs> |
Status: | Closed Not Accepted | ||
Severity: | Affects Only Me | CC: | hselasky |
Priority: | --- | ||
Version: | 10.1-RELEASE | ||
Hardware: | Any | ||
OS: | Any |
Description
Vladimir
2015-02-02 08:25:10 UTC
Finally got it working. I don't know but вумв restart does not have effect, reboot is required. # hp # hp1020 notify 100 { match "system" "USB"; match "subsystem" "DEVICE"; match "type" "ATTACH"; match "vendor" "0x03f0"; match "product" "0x2b17"; action "cat /usr/local/share/foo2zjs/firmware/sihp1020.dl > /dev/usb/1.2.1"; }; Hi, Maybe using "dd if=XXX of=XXX bs=512" is better. What is the maxpacket size of the endpoint in question? --HPS Hi, I see in your action you hardcode the USB device. Use $cdev instead, and substitute the last digit! action "dd if=/usr/local/share/foo2zjs/firmware/sihp1020.dl of=/dev/usb/1.2.1"; /dev/usb/1.2.1 can be obtained like this in the devd config file: realpath /dev/$cdev | sed -e "s/\.0/.1/g" Address 1.0 does not exist, so the last .0 will always be matched. --HPS |