projects
/
platform
/
upstream
/
dracut.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
636fa8b
)
terminfo: search also for /usr/share/terminfo
author
Luca Berra
<bluca@comedia.it>
Wed, 13 Jan 2010 14:50:52 +0000
(15:50 +0100)
committer
Harald Hoyer
<harald@redhat.com>
Wed, 13 Jan 2010 14:50:52 +0000
(15:50 +0100)
modules.d/95terminfo/install
patch
|
blob
|
history
diff --git
a/modules.d/95terminfo/install
b/modules.d/95terminfo/install
index
4d8f395
..
a118df9
100755
(executable)
--- a/
modules.d/95terminfo/install
+++ b/
modules.d/95terminfo/install
@@
-1,8
+1,8
@@
#!/bin/bash
# terminfo bits make things work better if you fall into interactive mode
-TERMINFODIR="/lib/terminfo"
+for TERMINFODIR in /lib/terminfo /etc/terminfo /usr/share/terminfo; do
+ [ -d ${TERMINFODIR} ] && break
+done
-[ ! -d ${TERMINFODIR} -a -d "/etc/terminfo" ] && \
- TERMINFODIR="/etc/terminfo"
-
-dracut_install $(find ${TERMINFODIR} -type f)
+[ -d ${TERMINFODIR} ] && \
+ dracut_install $(find ${TERMINFODIR} -type f)