From 236fae6cf1a619a92174efdf84cd7d91e7d4348d Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Mon, 12 Apr 2010 17:56:32 +0200 Subject: [PATCH] udevadm: trigger - switch default action from "add" to "change" --- NEWS | 3 +++ udev/udevadm-trigger.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 687bcdfb..c5fbbe16 100644 --- 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. diff --git a/udev/udevadm-trigger.c b/udev/udevadm-trigger.c index dbcaee3d..03aa5343 100644 --- a/udev/udevadm-trigger.c +++ b/udev/udevadm-trigger.c @@ -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= event action value, default is \"add\"\n" + " --action= event action value, default is \"change\"\n" " --subsystem-match= trigger devices from a matching subsystem\n" " --subsystem-nomatch= exclude devices from a matching subsystem\n" " --attr-match=]> trigger devices with a matching attribute\n" -- 2.39.5