# /etc/devd/my.conf # (C) 2013 Pavel Polyakov attach 210 { match "device-name" "uhid[0-9]+"; #action "/root/bin/usb-attach attach $system.$subsystem $cdev $device-name : cdev=$cdev devicename=$device-name class=$class devclass=$devclass bus=$bus parent=$parent device=${device} subdevice=$subdevice interface=$interface intclass=$intclass intprotocol=$intprotocol intsubclass=$intsubclass sernum=$sernum port=$port vendor=$vendor prod=$product subvendor=$subvendor man=$manufacturer cisvendor=$cisvendor cisproduct=$cisproduct pnpinfo=$pnpinfo "; action "pgrep Xorg && /root/bin/kbd-startex /dev/$device-name &"; }; notify 200 { #match "system" "USB"; #action "/root/bin/usb-attach notify=$type=$notify $system.$subsystem $cdev $device-name : cdev=$cdev devicename=$device-name class=$class devclass=$devclass bus=$bus parent=$parent device=$device subdevice=$subdevice interface=$interface intclass=$intclass intprotocol=$intprotocol intsubclass=$intsubclass sernum=$sernum port=$port vendor=$vendor prod=$product subvendor=$subvendor man=$manufacturer cisvendor=$cisvendor cisproduct=$cisproduct pnpinfo=$pnpinfo "; action "/root/bin/usb-attach notify=$type=$notify $system.$subsystem : cdev=$cdev devicename=$device-name class=$class devclass=$devclass bus=$bus parent=$parent device=$device subdevice=$subdevice interface=$interface intclass=$intclass intprotocol=$intprotocol intsubclass=$intsubclass sernum=$sernum port=$port vendor=$vendor prod=$product subvendor=$subvendor man=$manufacturer cisvendor=$cisvendor cisproduct=$cisproduct pnpinfo=$pnpinfo "; }; attach 200 { #match "system" "USB"; action "/root/bin/usb-attach attach $system.$subsystem $cdev $device-name : cdev=$cdev devicename=$device-name class=$class devclass=$devclass bus=$bus parent=$parent device=$device subdevice=$subdevice interface=$interface intclass=$intclass intprotocol=$intprotocol intsubclass=$intsubclass sernum=$sernum port=$port vendor=$vendor prod=$product subvendor=$subvendor man=$manufacturer cisvendor=$cisvendor cisproduct=$cisproduct pnpinfo=$pnpinfo "; }; detach 200 { #match "system" "USB"; action "/root/bin/usb-attach detach $system.$subsystem $cdev $device-name : cdev=$cdev class=$class devicename=$device-name devclass=$devclass bus=$bus parent=$parent device=$device subdevice=$subdevice interface=$interface intclass=$intclass intprotocol=$intprotocol intsubclass=$intsubclass sernum=$sernum port=$port vendor=$vendor prod=$product subvendor=$subvendor man=$manufacturer cisvendor=$cisvendor cisproduct=$cisproduct pnpinfo=$pnpinfo "; }; # . [root@cel 2:56:46] /usr/src/sbin/devd 1002# cat /var/run/devd.seqpacket.pipe # !system=CAM subsystem=periph type=error device=da0 serial="F12100000804" cam_status="0xcc" scsi_status=2 scsi_sense="70 02 3a 00" CDB="00 00 00 00 00 00 " # !system=CAM subsystem=periph type=error device=da0 serial="F12100000804" cam_status="0xcc" scsi_status=2 scsi_sense="70 02 3a 00" CDB="00 00 00 00 00 00 "