ISO/configs/releng/root-image/etc/rc.d/functions.d/prepare_locale_gen
Gerardo Exequiel Pozzi a9c02d9488 [configs/releng] Replace rc.d/archiso with initscripts hooks.
In this way:
* Prepare locales requested by boot param mostly early possible.
* Setup special console at end of rc.sysinit

Remove unneded include from automated_script (already included by rc.conf)

Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
2011-08-18 17:09:00 -03:00

12 lines
295 B
Plaintext

prepare_locale_gen ()
{
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
}
add_hook sysinit_postmount prepare_locale_gen