blob: 8cecaf3afb9b48efe85449db94e1bae359ce788c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/bash
# called by dracut
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
[[ -f $dracutsysrootdir${_terminfodir}/l/linux ]] && break
done
if [[ -d $dracutsysrootdir${_terminfodir} ]]; then
for i in "l/linux" "v/vt100" "v/vt102" "v/vt220"; do
inst_dir "$_terminfodir/${i%/*}"
$DRACUT_CP -L -t "${initdir}/${_terminfodir}/${i%/*}" "$dracutsysrootdir$_terminfodir/$i"
done
fi
}
|