From: Kay Sievers Date: Sat, 31 Mar 2007 00:42:14 +0000 (+0200) Subject: udevtest: export ACTION string if given as option X-Git-Tag: 174~2008 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c73ceeb9448c4398ea143faa4e1ccdc56d64238;p=systemd udevtest: export ACTION string if given as option --- diff --git a/udevtest.c b/udevtest.c index 8c56dba0..9d73996b 100644 --- a/udevtest.c +++ b/udevtest.c @@ -141,7 +141,7 @@ int main(int argc, char *argv[], char *envp[]) setenv("DEVPATH", udev->dev->devpath, 1); setenv("SUBSYSTEM", udev->dev->subsystem, 1); - setenv("ACTION", "add", 1); + setenv("ACTION", udev->action, 1); printf("This program is for debugging only, it does not run any program,\n" "specified by a RUN key. It may show incorrect results, if rules\n"