In message: <20031212021438.GA18921_at_pit.databus.com> Barney Wolff <barney_at_databus.com> writes: : On Fri, Dec 12, 2003 at 02:49:07PM +1300, Andrew Thompson wrote: : > : > I am trying to put together a devd rule for attaching a usb keyboard. The : > problem is that the usb device is called ukbd0 while the keyboard needs to : > be referred to as kbd1. : > : > attach 10 { : > device-name "ukbd[0-9]+"; : > action "kbdcontrol -k /dev/$device-name < /dev/console"; : > }; : > detach 10 { : > device-name "ukbd[0-9]+"; : > action "kbdcontrol -k /dev/kbd0"; : > }; : > : > This obviously doesnt work as /dev/ukbd0 doesnt exist, anyone know a way : > in devd to translate it to /dev/kbd1? devd deals with device_t things, not dev_t. Typically, but not always, there's a device_t -> dev_t naming convetion. With the keyboard stuff, /dev/kbd* isn't a real device, but a virtual one (well, there are many folks named differently that attach to it). : > maybe something like kbd($device-number + 1) No. : > A better solution would be if the kbd1 device caused a devd event when : > attached, which it does not seem to. There's nothing similar to /dev entires coming and going in devd yet. I plan on implementing it when I get some free time. WarnerReceived on Thu Dec 11 2003 - 19:03:39 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:33 UTC