chiark / gitweb /
udevadm: trigger - switch default action from "add" to "change"
authorKay Sievers <kay.sievers@vrfy.org>
Mon, 12 Apr 2010 15:56:32 +0000 (17:56 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Mon, 12 Apr 2010 15:56:32 +0000 (17:56 +0200)
NEWS
udev/udevadm-trigger.c

diff --git a/NEWS b/NEWS
index 687bcdfba1a2af1fc3d5559281b1b0106134abee..c5fbbe165d47055176f4c5eb239ac10740deb6f0 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,9 @@ udev 152
 ========
 Bugfixes.
 
+"udevadm trigger" default to "change" events now, instead of "add"
+events.
+
 All "add|change" matches are replaced by "!remove" in the rules and
 in the udev logic. All types of events will update possible symlinks
 and permissions, only "remove" is handled special now.
index dbcaee3dbd59299141081a55bd9fdc9748f07e7c..03aa53437f17a034f2ebb8a2a8e6232702a54efa 100644 (file)
@@ -110,7 +110,7 @@ int udevadm_trigger(struct udev *udev, int argc, char *argv[])
                TYPE_SUBSYSTEMS,
                TYPE_FAILED,
        } device_type = TYPE_DEVICES;
-       const char *action = "add";
+       const char *action = "change";
        struct udev_enumerate *udev_enumerate;
        int rc = 0;
 
@@ -184,7 +184,7 @@ int udevadm_trigger(struct udev *udev, int argc, char *argv[])
                               "      subsystems                    sys subsystems and drivers\n"
                               "      failed                        trigger only the events which have been\n"
                               "                                    marked as failed during a previous run\n"
-                              "  --action=<action>               event action value, default is \"add\"\n"
+                              "  --action=<action>               event action value, default is \"change\"\n"
                               "  --subsystem-match=<subsystem>   trigger devices from a matching subsystem\n"
                               "  --subsystem-nomatch=<subsystem> exclude devices from a matching subsystem\n"
                               "  --attr-match=<file[=<value>]>   trigger devices with a matching attribute\n"