diff options
author | kay.sievers@vrfy.org <kay.sievers@vrfy.org> | 2004-11-12 06:17:35 +0100 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 22:24:10 -0700 |
commit | c6478ec1e128f0a92c2123ed110a651b88d43569 (patch) | |
tree | cfefe6c87301604bb838f1a5eb566f1206d975d2 /udev.c | |
parent | 31fd340352236c06c30a85fa9fbdbfbbd10bd439 (diff) |
[PATCH] add ACTION to udev object to expose it to the whole process
Diffstat (limited to 'udev.c')
-rw-r--r-- | udev.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -94,9 +94,9 @@ int main(int argc, char *argv[], char *envp[]) if (strstr(argv[0], "udevstart") || (argv[1] != NULL && strstr(argv[1], "udevstart"))) { act_type = UDEVSTART; } else { - const char *action = get_action(); - const char *devpath = get_devpath(); - const char *subsystem = get_subsystem(main_argv[1]); + const char *action = getenv("ACTION"); + const char *devpath = getenv("DEVPATH"); + const char *subsystem = argv[1]; if (!action) { dbg("no action?"); @@ -128,7 +128,7 @@ int main(int argc, char *argv[], char *envp[]) goto exit; } - udev_set_values(&udev, devpath, subsystem); + udev_set_values(&udev, devpath, subsystem, action); /* skip blacklisted subsystems */ if (udev.type != 'n' && subsystem_expect_no_dev(subsystem)) { |