Technically yes, `udevadm trigger --action=` can be used to trigger rules for any kind of action including remove (or just writing 'remove' into the corresponding device's "/sys/.../uevent" file), just keep in mind that this won't *actually* remove the device...which might result in udev and other software being a bit confused when a "removed" device continues to exist. (Normally it's the removal that triggers rules, not the other way around.)
On Mon, Jun 5, 2023 at 8:46 AM daggs <da...@gmx.com> wrote: > Greetings, > > given a rule file which has a add and remove handlers, is there a way to > manually trigger the remove handler of that file? > > Thanks, > > Dagg > -- Mantas Mikulėnas