From e5c9bc1198ce01c8e80822f83b4162a1fd1465ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Canek=20Pel=C3=A1ez=20Vald=C3=A9s?= Date: Sun, 14 Oct 2012 19:51:54 -0500 Subject: [PATCH] Don't install FONT if it's the same as DEFAULT_FONT. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- modules.d/10i18n/module-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules.d/10i18n/module-setup.sh b/modules.d/10i18n/module-setup.sh index df6e5b19..1ed1db68 100755 --- a/modules.d/10i18n/module-setup.sh +++ b/modules.d/10i18n/module-setup.sh @@ -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}.*