1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-21 02:50:18 +03:00

[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.
This commit is contained in:
kay.sievers@vrfy.org 2004-11-10 09:44:58 +01:00 committed by Greg KH
parent 3bdef3939d
commit 38753167e4

2
udev.c
View File

@ -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();