#!/bin/sh
-# Filename: /etc/grml/fai/config/scripts/GRML/25-locales
+# Filename: /etc/grml/fai/config/scripts/GRMLBASE/25-locales
# Purpose: locales (language) configuration of the live system
# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2 or any later version.
-# Latest change: Sun Sep 16 22:59:23 CEST 2007 [mika]
+# Latest change: Mon Oct 15 20:34:53 CEST 2007 [mika]
################################################################################
-set -u
set -e
-cp $target/etc/locale.gen.minimal $target/etc/locale.gen
+# use full locales setup only in classes GRML_FULL and LOCALES
+if ifclass GRML_FULL || ifclass LOCALES ; then
+ echo 'Using /etc/locale.gen.grml for locales generation'
+ cp $target/etc/locale.gen.grml $target/etc/locale.gen
+else
+ echo 'Using /etc/locale.gen.minimal for locales generation'
+ cp $target/etc/locale.gen.minimal $target/etc/locale.gen
+fi
+
$ROOTCMD locale-gen
## END OF FILE #################################################################