summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-08-25 03:09:57 +0200
committerLennart Poettering <lennart@poettering.net>2010-08-25 03:09:57 +0200
commit93a45c562a1989dfbb2dd08c65f8a21b02959934 (patch)
tree236c75089c5e8a2c4b9581f0930472cf279dce13 /src
parentaddab137cd8d318e4f543ca56018ee23d51aaca9 (diff)
serial: use seperate getty template for serial ttys
Diffstat (limited to 'src')
-rw-r--r--src/auto-serial-getty.c (renamed from src/auto-console-getty.c)4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/auto-console-getty.c b/src/auto-serial-getty.c
index 44d2eff732..7bc2fba8da 100644
--- a/src/auto-console-getty.c
+++ b/src/auto-serial-getty.c
@@ -42,7 +42,7 @@ static int spawn_getty(DBusConnection *bus, const char *console) {
assert(console);
/* FIXME: we probably should escape the tty name properly here */
- if (asprintf(&name, "getty@%s.service", console) < 0)
+ if (asprintf(&name, "serial-getty@%s.service", console) < 0)
return -ENOMEM;
if (!(m = dbus_message_new_method_call("org.freedesktop.systemd1", "/org/freedesktop/systemd1", "org.freedesktop.systemd1.Manager", "StartUnit"))) {
@@ -115,7 +115,7 @@ static int parse_proc_cmdline(char **console) {
assert(console);
- if ((r = read_one_line_file("/tmp/cmdline", &line)) < 0) {
+ if ((r = read_one_line_file("/proc/cmdline", &line)) < 0) {
log_warning("Failed to read /proc/cmdline, ignoring: %s", strerror(-r));
return 0;
}