summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2007-03-31 02:42:14 +0200
committerKay Sievers <kay.sievers@vrfy.org>2007-03-31 02:42:14 +0200
commit1c73ceeb9448c4398ea143faa4e1ccdc56d64238 (patch)
tree88844bb33c8ac019b7bcb82f591a4ca6f800d2aa
parentb8eb7940bb609e21697c7ded759536b039320886 (diff)
udevtest: export ACTION string if given as option
-rw-r--r--udevtest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udevtest.c b/udevtest.c
index 8c56dba0f1..9d73996bcf 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"