From f2009c4c76daf31cd008b6faee8b96abaacc7673 Mon Sep 17 00:00:00 2001 From: Gerardo Exequiel Pozzi Date: Fri, 1 Jul 2011 21:31:16 -0300 Subject: [configs/releng] Re-generate locales only if needed. Signed-off-by: Gerardo Exequiel Pozzi --- configs/releng/root-image/etc/rc.d/archiso | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'configs/releng/root-image/etc/rc.d/archiso') diff --git a/configs/releng/root-image/etc/rc.d/archiso b/configs/releng/root-image/etc/rc.d/archiso index 1429516..1bd315d 100755 --- a/configs/releng/root-image/etc/rc.d/archiso +++ b/configs/releng/root-image/etc/rc.d/archiso @@ -12,10 +12,12 @@ do_makeuser () do_locale_gen () { - stat_busy "Generating locales..." - sed -i "s/#\(${LOCALE/[@.]*}\)/\1/" /etc/locale.gen - /usr/sbin/locale-gen > /dev/null - stat_done + if [[ ${LOCALE} != "en_US.UTF-8" ]]; then + stat_busy "Generating locales..." + sed -i "s/#\(${LOCALE/[@.]*}\)/\1/" /etc/locale.gen + /usr/sbin/locale-gen > /dev/null + stat_done + fi } # If an alternate console was specified on the kernel command line, -- cgit v1.2.3-54-g00ecf