]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
95terminfo/module-setup.sh: check for terminfo/l/linux
authorHarald Hoyer <harald@redhat.com>
Mon, 13 Feb 2012 20:15:51 +0000 (21:15 +0100)
committerHarald Hoyer <harald@redhat.com>
Mon, 13 Feb 2012 20:15:51 +0000 (21:15 +0100)
on Fedora 17 the old check found /etc/terminfo, but this directory is
emtpy.

modules.d/95terminfo/module-setup.sh

index 6377389211dfe75162fb71a9723d2c35ad81103f..5a16082db83b78ff1469a4e74a0b389c95895613 100755 (executable)
@@ -6,7 +6,7 @@ install() {
     local _terminfodir
     # terminfo bits make things work better if you fall into interactive mode
     for _terminfodir in /lib/terminfo /etc/terminfo /usr/share/terminfo; do
-        [ -d ${_terminfodir} ] && break
+        [ -f ${_terminfodir}/l/linux ] && break
     done
 
     if [ -d ${_terminfodir} ]; then