eval echo setupcon: Warning: ignoring the FONTFACE and FONTSIZE specifications! $verbose
fi
elif [ "$FONTFACE" ] && [ "$FONTSIZE" ]; then
FONT="$CODESET-$FONTFACE$FONTSIZE.psf.gz"
case "$FONTSIZE" in
*x*)
bigfont=yes
;;
*)
bigfont=no
;;
esac
fi
fi
LOADFONTS=''
for f in $FONT; do
if [ -f "$f" ]; then
LOADFONTS="$LOADFONTS $f"
else
fdec="${f%.gz}"
for dir in \
/usr/local/share/consolefonts \
/usr/share/consolefonts \
/etc/console-setup \
FONT_IS_MISSING
do
if [ -f "$dir/${f##*/}" ]; then
LOADFONTS="$LOADFONTS $dir/${f##*/}"
break
elif [ -f "$dir/${fdec##*/}" ]; then
LOADFONTS="$LOADFONTS $dir/${fdec##*/}"
break
fi
if [ "$dir" = FONT_IS_MISSING ]; then
echo setupcon: Warning: the font ${f##*/} does not exist! >&2
fi
done
fi
done
LOADFONT_MAP=''
for f in $FONT_MAP; do
[ -z "$LOADFONT_MAP" ] || break # only one unicode map
if [ -f "$f" ]; then
LOADFONT_MAP="$LOADFONT_MAP $f"
else
for dir in \
/usr/local/share/consoletrans \
/usr/share/consoletrans \
/etc/console-setup \
FONT_MAP_IS_MISSING
do
if [ -f "$dir/${f##*/}" ]; then
LOADFONT_MAP="$LOADFONT_MAP $dir/${f##*/}"
break
fi
if [ "$dir" = FONT_MAP_IS_MISSING ]; then
echo setupcon: Warning: the unicode map ${f##*/} does not exist! >&2
fi
done
fi
done
for f in $LOADFONTS; do
if \
[ "$save" = yes ] \
&& [ "${f%/*}" != /etc/console-setup ]
then
fdec="${f%.gz}"
if [ "$fdec" = "$f" ]; then
cp "$f" /etc/console-setup/
else
gunzip -c "$f" >"/etc/console-setup/${fdec##*/}"
fi
rm -f "/etc/console-setup/${fdec##*/}.gz"
fi
done
for f in $LOADFONT_MAP; do
if \
[ "$save" = yes ] \
&& [ "${f%/*}" != /etc/console-setup ]
then
cp "$f" /etc/console-setup/
fi
done
# Due to bug in splashy and usplash: do not load fonts (#540314)
if \
pidof splashy > /dev/null \
|| pidof usplash > /dev/null
then
LOADFONTS=''
fi
if [ "$save_only" != yes ] && [ "$LOADFONTS" ]; then
for console in $ACTIVE_CONSOLES; do
[ -w $console ] || continue
if which consolechars >/dev/null; then
if [ "$bigfont" = yes ]; then
echo "setupcon: The consolechars utility from the console-setup font can load only fonts with 8 pixel width matrix. Please install the setfont utility from the kbd package." >&2