network: don't use "ifup -m"
[dracut.git] / modules.d / 95terminfo / module-setup.sh
blobebe7a1669bb4fa7a14b0fd7bcd10032bcbe02c9a
1 #!/bin/bash
3 # called by dracut
4 install() {
5 local _terminfodir
6 # terminfo bits make things work better if you fall into interactive mode
7 for _terminfodir in /lib/terminfo /etc/terminfo /usr/share/terminfo; do
8 [ -f ${_terminfodir}/l/linux ] && break
9 done
11 if [ -d ${_terminfodir} ]; then
12 for i in "l/linux" "v/vt100" "v/vt102" "v/vt220"; do
13 inst_dir "$_terminfodir/${i%/*}"
14 cp --reflink=auto --sparse=auto -prfL -t "${initdir}/${_terminfodir}/${i%/*}" "$_terminfodir/$i"
15 done