From: Marco d'Itri Date: Thu, 27 Aug 2009 01:55:44 +0000 (+0200) Subject: doc: writing_udev_rules updated for the new command names X-Git-Tag: 174~812 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=133e51af3b3bf455ec1ebf96972c315a4fb70dce;p=systemd doc: writing_udev_rules updated for the new command names --- diff --git a/docs/writing_udev_rules/index.html b/docs/writing_udev_rules/index.html index ca4fb9d3..8c097487 100644 --- a/docs/writing_udev_rules/index.html +++ b/docs/writing_udev_rules/index.html @@ -79,7 +79,7 @@ The most recent version of this document can always be found at:
  • Testing and debugging
  • Author and contact
  • @@ -843,22 +843,18 @@ Despite this, udev will not automatically reprocess all devices and attempt to a

    -To make the symbolic link show up, you can either disconnect and reconnect your camera, or alternatively in the case of non-removable devices, you can run udevtrigger. -

    - -

    -If your kernel does not have inotify support, new rules will not be detected automatically. In this situation, you must run udevcontrol reload_rules after making any rule file modifications for those modifications to take effect. +To make the symbolic link show up, you can either disconnect and reconnect your camera, or alternatively in the case of non-removable devices, you can run udevadm trigger.

    -

    udevtest

    +

    udevadm test

    -If you know the top-level device path in sysfs, you can use udevtest to show the actions which udev would take. This may help you debug your rules. For example, assuming you want to debug a rule which acts on /sys/class/sound/dsp: +If you know the top-level device path in sysfs, you can use udevadm test to show the actions which udev would take. This may help you debug your rules. For example, assuming you want to debug a rule which acts on /sys/class/sound/dsp:

    -# udevtest /class/sound/dsp
    +# udevadm test /class/sound/dsp
     main: looking at device '/class/sound/dsp' from subsystem 'sound'
     udev_rules_get_name: add symlink 'dsp'
     udev_rules_get_name: rule applied, 'dsp' becomes 'sound/dsp'
    @@ -868,7 +864,7 @@ udev_node_add: creating symlink '/dev/dsp' to 'sound/dsp'
     

    -Note the /sys prefix was removed from the udevtest command line argument, this is because udevtest operates on device paths. Also note that udevtest is purely a testing/debugging tool, it does not create any device nodes, despite what the output suggests! +Note the /sys prefix was removed from the udevadm test test command line argument, this is because udevadm test operates on device paths. Also note that udevadm test is purely a testing/debugging tool, it does not create any device nodes, despite what the output suggests!