73a4afd4c74ced90ecd57f276d064a9f9e5502fd
[grml-live.git] / etc / grml / fai / config / scripts / GRMLBASE / 25-locales
1 #!/bin/sh
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 # Latest change: Mon Oct 15 20:34:53 CEST 2007 [mika]
8 ################################################################################
9
10 set -e
11
12 # use full locales setup only in classes GRML_FULL and LOCALES
13 if ifclass GRML_FULL || ifclass LOCALES ; then
14    echo 'Using /etc/locale.gen.grml for locales generation'
15    cp $target/etc/locale.gen.grml $target/etc/locale.gen
16 else
17    echo 'Using /etc/locale.gen.minimal for locales generation'
18    cp $target/etc/locale.gen.minimal $target/etc/locale.gen
19 fi
20
21 $ROOTCMD locale-gen
22
23 ## END OF FILE #################################################################
24 # vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=3