Blame 0013-i18n-check-for-setfont-and-loadkeys-binaries.patch

Harald Hoyer fe48c9
From 87bd8907a64991445af552740806d3949fc6d6ca Mon Sep 17 00:00:00 2001
Harald Hoyer fe48c9
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer fe48c9
Date: Mon, 26 Aug 2013 10:19:49 +0200
Harald Hoyer fe48c9
Subject: [PATCH] i18n: check for setfont and loadkeys binaries
Harald Hoyer fe48c9
Harald Hoyer fe48c9
---
Harald Hoyer fe48c9
 modules.d/10i18n/module-setup.sh | 5 +++++
Harald Hoyer fe48c9
 1 file changed, 5 insertions(+)
Harald Hoyer fe48c9
Harald Hoyer fe48c9
diff --git a/modules.d/10i18n/module-setup.sh b/modules.d/10i18n/module-setup.sh
Harald Hoyer fe48c9
index be9d90b..2a83728 100755
Harald Hoyer fe48c9
--- a/modules.d/10i18n/module-setup.sh
Harald Hoyer fe48c9
+++ b/modules.d/10i18n/module-setup.sh
Harald Hoyer fe48c9
@@ -4,6 +4,11 @@
Harald Hoyer fe48c9
 
Harald Hoyer fe48c9
 check() {
Harald Hoyer fe48c9
     [[ "$mount_needs" ]] && return 1
Harald Hoyer fe48c9
+
Harald Hoyer fe48c9
+    for i in setfont loadkeys kbd_mode; do
Harald Hoyer fe48c9
+        type -P "$i" >/dev/null || return 1
Harald Hoyer fe48c9
+    done
Harald Hoyer fe48c9
+
Harald Hoyer fe48c9
     return 0
Harald Hoyer fe48c9
 }
Harald Hoyer fe48c9