2 # Filename: /etc/grml/fai/config/scripts/GRMLBASE/25-locales
3 # Purpose: locales (language) configuration of the live system
4 # Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
5 # Bug-Reports: see http://grml.org/bugs/
6 # License: This file is licensed under the GPL v2 or any later version.
7 ################################################################################
12 # localepurge localepurge/nopurge multiselect ....
13 # is set so localepurge works as expected
14 if [ -x $target/usr/sbin/localepurge ] ; then
15 $ROOTCMD dpkg-reconfigure -f noninteractive localepurge
18 # use full locales setup only in classes GRML_FULL and LOCALES
19 if ifclass GRML_FULL || ifclass LOCALES ; then
20 echo 'Using /etc/locale.gen.grml for locales generation'
21 cp $target/etc/locale.gen.grml $target/etc/locale.gen
23 echo 'Using /etc/locale.gen.minimal for locales generation'
24 cp $target/etc/locale.gen.minimal $target/etc/locale.gen
27 if [ -x $target/usr/sbin/locale-gen ] ; then
30 echo 'Warning: locale-gen [package locales] not available'
33 if [ -x $target/usr/sbin/localepurge ] ; then
37 ## END OF FILE #################################################################
38 # vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=3