summaryrefslogtreecommitdiff
path: root/src/getty-generator.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-08-01 20:27:57 +0200
committerLennart Poettering <lennart@poettering.net>2011-08-01 20:28:01 +0200
commit980fc73d1fcda8c2a494a18dbd3262fdb97f5fbe (patch)
treea97c8ba6620e6249ecbb2f8b212af668c1611475 /src/getty-generator.c
parent6e5c044421fbcdaff2f9f4cbdb6404f06bf93e46 (diff)
getty: automatically spawn getty on xen console xvc0
https://bugzilla.redhat.com/show_bug.cgi?id=726976
Diffstat (limited to 'src/getty-generator.c')
-rw-r--r--src/getty-generator.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/getty-generator.c b/src/getty-generator.c
index 683775a4d5..141402bd15 100644
--- a/src/getty-generator.c
+++ b/src/getty-generator.c
@@ -119,6 +119,14 @@ int main(int argc, char *argv[]) {
if (add_symlink("serial-getty@.service", "serial-getty@hvc0.service") < 0)
r = EXIT_FAILURE;
+
+ }
+
+ if (access("/sys/class/tty/xvc0", F_OK) == 0) {
+ log_debug("Automatic adding serial getty for xvc0.");
+
+ if (add_symlink("serial-getty@.service", "serial-getty@xvc0.service") < 0)
+ r = EXIT_FAILURE;
}
finish: