From 77d4b9ab4339d1ff11cbf3a51627b2a708e14227 Mon Sep 17 00:00:00 2001 From: Petr Lautrbach Date: Mon, 23 Nov 2009 16:46:40 +0100 Subject: fixed serial console handling --- src/console_check.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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; } -- cgit v1.2.1