On Sun, Nov 21, 2010 at 23:15, Roman Byshko <rbyshko@xxxxxxxxx> wrote: > is it possible for "udevadm test <dev-path>" to show the rule that was > applied to load the driver? > > As I undestand this is the following rule: DRIVER!="?*", > ENV{MODALIAS}=="?*", RUN+="/sbin/modprobe -bv $env{MODALIAS}". > > How can I made udevadm test to show, that it was applied? You need to unload the module in question to let the rules match during the 'test' run: $ rmmod iwlagn $ udevadm test /devices/pci0000:00/0000:00:1c.1/0000:03:00.0 run_command: calling: test udevadm_test: version 164 ... udev_rules_apply_to_event: RUN '/sbin/modprobe \ -bv $env{MODALIAS}' /lib/udev/rules.d/80-drivers.rules:5 ... udevadm_test: run: '/sbin/modprobe \ -bv pci:v00008086d00004236sv00008086sd00001011bc02sc80i00' The 'test' run will not execute RUN instructions, so the module will not be loaded again by doing this. 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