]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
support for unusual terminfo location
authorThilo Bangert <thilo.bangert@gmx.net>
Fri, 24 Jul 2009 20:01:35 +0000 (22:01 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 6 Aug 2009 12:43:12 +0000 (14:43 +0200)
the following patch makes the 95terminfo module work on gentoo.

modules.d/95terminfo/install

index 7f14aa1c39e4304b625fa88d600d101ecde337d3..4d8f39504bc18859892d3270848ed79581716218 100755 (executable)
@@ -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)