Don't install FONT if it's the same as DEFAULT_FONT.

If the user defines FONT in /etc/vconsole.conf as the same font
defined in DEFAULT_FONT, when creating her initd she will get a
message similar to this one:

gzip: /var/tmp/initramfs.wzl9Qt/usr/share/consolefonts/LatArCyrHeb-16.psfu
already exists; do you wish to overwrite (y or n)?

Signed-off-by: Canek Peláez <canek@ciencias.unam.mx>
master
Canek Peláez Valdés 2012-10-14 19:51:54 -05:00 committed by Harald Hoyer
parent fc9bc6f8db
commit e5c9bc1198
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ install() {

inst_opt_decompress ${kbddir}/consolefonts/${DEFAULT_FONT}.*

if [[ ${FONT} ]]
if [[ ${FONT} ]] && [[ ${FONT} != ${DEFAULT_FONT} ]]
then
FONT=${FONT%.psf*}
inst_opt_decompress ${kbddir}/consolefonts/${FONT}.*