aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPetr Lautrbach <plautrba@redhat.com>2009-11-23 16:46:40 +0100
committerBill Nottingham <notting@redhat.com>2009-12-03 14:39:25 -0500
commit77d4b9ab4339d1ff11cbf3a51627b2a708e14227 (patch)
tree43dcd7fcbdc9887bd5a6ad2d204e364e17c43ddb /src
parent33d49ab72866afc3e68b3b53f38f7b696762f487 (diff)
downloadinitscripts-77d4b9ab4339d1ff11cbf3a51627b2a708e14227.tar
initscripts-77d4b9ab4339d1ff11cbf3a51627b2a708e14227.tar.gz
initscripts-77d4b9ab4339d1ff11cbf3a51627b2a708e14227.tar.bz2
initscripts-77d4b9ab4339d1ff11cbf3a51627b2a708e14227.tar.xz
initscripts-77d4b9ab4339d1ff11cbf3a51627b2a708e14227.zip
fixed serial console handling
Diffstat (limited to 'src')
-rw-r--r--src/console_check.c5
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;
}