On Wednesday 23 May 2007 13:39, David A. Desrosiers wrote:
> What do they use in /etc/udev/rules.d/ to trigger the device subsystem
> to recognize the device and create the appropriate nodes in /dev/?
Here's a directory listing. The '50-udev.rules' file has a buttload of usb
entries for everything from ALSA/sound to printer and libusb device access
(also listed). Let me know if you want the whole file.
-TR
$ ll /etc/udev/rules.d
total 48
-rw-r--r-- 1 root root 554 2005-09-09 09:15 29-net_trigger_firmware.rules
-rw-r--r-- 1 root root 761 2007-01-06 16:18 30-net_persistent_names.rules
-rw-r--r-- 1 root root 576 2005-09-09 09:15 31-net_create_names.rules
-rw-r--r-- 1 root root 4125 2007-01-31 17:16 40-bluetooth.rules
-rw-r--r-- 1 root root 4205 2005-09-06 08:51 45-isdn.rules
-rw-rw-r-- 1 root root 11796 2005-09-09 10:10 50-udev.rules
-rw-r--r-- 1 root root 565 2005-09-12 16:44 51-lirc.rules
-rw-r--r-- 1 root root 878 2007-02-24 17:44 55-cdrom.rules
# libusb device access (mount usbfs or usbdev nodes)
224 DEVPATH=="/module/usbcore", ACTION=="add", RUN+="/bin/mount -t usbfs
usbfs /proc /bus/usb"
225 SUBSYSTEM="usb_device", PROGRAM="/bin/sh -c 'X=%k X=$${X#usbdev}
B=$${X%%%%.*} D =$${X#*.}; echo bus/usb/$$B/$$D'", SYMLINK+="%c"
230 # SUSE system integration
231 SUBSYSTEM=="pci", ACTION=="add", RUN+="/sbin/hwup bus-pci-%k -o
hotplug"
232 SUBSYSTEM=="macio", ACTION=="add", RUN+="/sbin/hwup bus-macio-%k -o
hotplug"
233 SUBSYSTEM=="usb", ACTION=="add", RUN+="/sbin/hwup usb-devpath-/sys%p
-o hotplug"
234 LABEL="after_usb_default"
235 SUBSYSTEM=="ieee1394", ACTION=="add", RUN+="/sbin/hwup
ieee1394-devpath-/sys%p -
o hotplug"
236 SUBSYSTEM=="ccw", ACTION=="add", RUN+="/sbin/hwup ccw-devpath-/sys%p
-o hotplug"
237 SUBSYSTEM=="ccwgroup", ACTION=="add", RUN+="/sbin/hwup
ccwgroup-devpath-/sys%p -
o hotplug"
238 SUBSYSTEM=="scsi", DEVPATH=="/devices/css*", ACTION=="remove",
RUN+="/sbin/hwdow
n scsi-devpath-/sys%p -o hotplug"
239 SUBSYSTEM=="scsi_host", ACTION=="add", SYSFS{device/cutype}=="*",
RUN+="/sbin/hw
up scsi__host-devpath-/sys%p -o hotplug"
240
241 # default
242 RUN+="/usr/sbin/hal.hotplug"
243 RUN+="socket:/org/kernel/udev/monitor"
244
245 # debug events to /events, but not on default udev_log="err"
246 ENV{UDEV_LOG}=="[4-9]", RUN+="/sbin/hotplugeventrecorder"
247
More information about the jpilot mailing list