diff options
author | Petr Lautrbach <plautrba@redhat.com> | 2009-11-23 16:46:40 +0100 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2009-12-03 14:39:25 -0500 |
commit | 77d4b9ab4339d1ff11cbf3a51627b2a708e14227 (patch) | |
tree | 43dcd7fcbdc9887bd5a6ad2d204e364e17c43ddb | |
parent | 33d49ab72866afc3e68b3b53f38f7b696762f487 (diff) | |
download | initscripts-77d4b9ab4339d1ff11cbf3a51627b2a708e14227.tar initscripts-77d4b9ab4339d1ff11cbf3a51627b2a708e14227.tar.gz initscripts-77d4b9ab4339d1ff11cbf3a51627b2a708e14227.tar.bz2 initscripts-77d4b9ab4339d1ff11cbf3a51627b2a708e14227.tar.xz initscripts-77d4b9ab4339d1ff11cbf3a51627b2a708e14227.zip |
fixed serial console handling
-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; } |