From 38753167e4e49879f97003f075158cc642bf0b0d Mon Sep 17 00:00:00 2001 From: "kay.sievers@vrfy.org" Date: Wed, 10 Nov 2004 09:44:58 +0100 Subject: [PATCH] [PATCH] let udev act as udevstart if argv[1] == "udevstart" "udev udevstart" will run udev as udevstart. This makes it easier to run a test in the source tree without the need to create a symlink. --- udev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/udev.c b/udev.c index d8cb4365..b5489666 100644 --- a/udev.c +++ b/udev.c @@ -91,7 +91,7 @@ int main(int argc, char *argv[], char *envp[]) udev_init_config(); - if (strstr(argv[0], "udevstart")) { + if (strstr(argv[0], "udevstart") || (argv[1] != NULL && strstr(argv[1], "udevstart"))) { act_type = UDEVSTART; } else { const char *action = get_action(); -- 2.39.5