Skip to contentSkip to conversation

support for unusual terminfo location

PATCH New Thilo Bangert 1 participant 1 message Jul 24, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 support for unusual terminfo location

Hi,

the following patch makes the 95terminfo module work on gentoo.

thanks
kind regards
Thilo

modules.d/95terminfo/install +6 -1
index 7f14aa1..4d8f395 100755
@@ -1,3 +1,8 @@
 #!/bin/bash
 # terminfo bits make things work better if you fall into interactive mode
-dracut_install $(find /lib/terminfo -type f)
\ No newline at end of file
+TERMINFODIR="/lib/terminfo"
+
+[ ! -d ${TERMINFODIR} -a -d "/etc/terminfo" ] && \
+	TERMINFODIR="/etc/terminfo"
+
+dracut_install $(find ${TERMINFODIR} -type f)