]> err.no Git - systemd/commitdiff
udevtest: export ACTION string if given as option
authorKay Sievers <kay.sievers@vrfy.org>
Sat, 31 Mar 2007 00:42:14 +0000 (02:42 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Sat, 31 Mar 2007 00:42:14 +0000 (02:42 +0200)
udevtest.c

index 8c56dba0f1c7d3cc9e7adb5ed534fff13af244e2..9d73996bcf19c95fa946caddf9de4eaaed73a43c 100644 (file)
@@ -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"