Blame 0070-i18n-console_init.sh-skip-if-we-use-systemd-and-use-.patch

Harald Hoyer 811c04
From 852105dc44d4bdfda8d988146f08f4a60bce979c Mon Sep 17 00:00:00 2001
Harald Hoyer 811c04
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 811c04
Date: Fri, 27 Jul 2012 14:11:22 +0200
Harald Hoyer 811c04
Subject: [PATCH] i18n/console_init.sh: skip, if we use systemd and use
Harald Hoyer 811c04
 systemd-vconsole-init
Harald Hoyer 811c04
Harald Hoyer 811c04
---
Harald Hoyer 811c04
 modules.d/10i18n/console_init.sh | 6 +++++-
Harald Hoyer 811c04
 1 file changed, 5 insertions(+), 1 deletion(-)
Harald Hoyer 811c04
Harald Hoyer 811c04
diff --git a/modules.d/10i18n/console_init.sh b/modules.d/10i18n/console_init.sh
Harald Hoyer 811c04
index 37efdd1..24eaad8 100755
Harald Hoyer 811c04
--- a/modules.d/10i18n/console_init.sh
Harald Hoyer 811c04
+++ b/modules.d/10i18n/console_init.sh
Harald Hoyer 811c04
@@ -2,7 +2,11 @@
Harald Hoyer 811c04
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer 811c04
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer 811c04
 
Harald Hoyer 811c04
-[ -x /lib/systemd/systemd-vconsole-setup ] && exit 0
Harald Hoyer 811c04
+[ -x /lib/systemd/systemd ] && exit 0
Harald Hoyer 811c04
+
Harald Hoyer 811c04
+if [ -x /lib/systemd/systemd-vconsole-setup ]; then
Harald Hoyer 811c04
+    /lib/systemd/systemd-vconsole-setup "$@"
Harald Hoyer 811c04
+fi
Harald Hoyer 811c04
 
Harald Hoyer 811c04
 [ -e /etc/vconsole.conf ] && . /etc/vconsole.conf
Harald Hoyer 811c04