On Thu, Jan 29, 2009 at 09:37, Soh Kam Yung <sohkamyung@xxxxxxxxx> wrote: > During testing, I discovered that udev will create device nodes (for > example, for block devices) in the /dev directory even when I did not > define any udev rules to do this. Is this the default udev behaviour? Yes, udev creates by default all device nodes the kernel requests. > My current /sbin/hotplug scripts already handle the device nodes and > I would like udev not to do this. > > I have tried to stop this by using OPTIONS+="ignore_device" and this > seems to work. This will ignore the entire event, you can not run anything then. > But for some types of devices, I still want udev to take some action > (like run an external program) but not create device nodes. > > I tried to get this behaviour by using RUN+="/usr/bin/my_program", > OPTIONS+="last_rule", but udev still appears to create the device > node. > > Is it possible to stop udev from creating device nodes by default? NAME="" should suppress the device node, but still handle all other instructions. Kay -- To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html