diff options
-rw-r--r-- | src/console_check.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/console_check.c b/src/console_check.c index 595012ff..35065479 100644 --- a/src/console_check.c +++ b/src/console_check.c @@ -152,9 +152,10 @@ out: int emit_console_event(char *dev, int speed) { char *args[] = { "initctl", "emit", "--no-wait", "fedora.serial-console-available", NULL, NULL, NULL }; - args[4] = dev; + if (dev) + asprintf(&args[4],"DEV=%s",dev); if (speed) - asprintf(&args[5],"%d",speed); + asprintf(&args[5],"SPEED=%d",speed); execv("/sbin/initctl", args); return 1; } |