Merge branches
[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 19:00:15 CEST 2007 [mika]
8 ################################################################################
9
10 set -u
11 set -e
12
13 # use full locales setup only in classes GRML_FULL and LOCALES
14 if ifclass GRML_FULL || ifclass LOCALES ; then
15    echo 'Using /etc/locale.gen.grml for locales generation'
16    cp $target/etc/locale.gen.grml $target/etc/locale.gen
17 else
18    echo 'Using /etc/locale.gen.minimal for locales generation'
19    cp $target/etc/locale.gen.minimal $target/etc/locale.gen
20 fi
21
22 $ROOTCMD locale-gen
23
24 ## END OF FILE #################################################################
25 # vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=3