X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Fscripts%2FGRMLBASE%2F25-locales;h=ded06de99e9ea3924ae31f3566cf7471cdcacdd7;hb=b68164e384f6c7d682212995fc96ab919a2677f0;hp=58f080d63851a537c3f6f523b611e425e2a5e2f4;hpb=d8787dc96653c1c726588c89f060d6870525140a;p=grml-live.git diff --git a/etc/grml/fai/config/scripts/GRMLBASE/25-locales b/etc/grml/fai/config/scripts/GRMLBASE/25-locales index 58f080d..ded06de 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/25-locales +++ b/etc/grml/fai/config/scripts/GRMLBASE/25-locales @@ -4,12 +4,15 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2 or any later version. -# Latest change: Mon Oct 15 19:00:15 CEST 2007 [mika] +# Latest change: Sat Nov 03 12:01:12 CET 2007 [mika] ################################################################################ -set -u set -e +if [ -x $target/usr/sbin/localepurge ] ; then + $ROOTCMD dpkg-reconfigure localepurge +fi + # 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' @@ -19,7 +22,15 @@ else cp $target/etc/locale.gen.minimal $target/etc/locale.gen fi -$ROOTCMD locale-gen +if [ -x $target/usr/sbin/locale-gen ] ; then + $ROOTCMD locale-gen +else + echo 'Warning: locale-gen [package locales] not available' +fi + +if [ -x $target/usr/sbin/localepurge ] ; then + $ROOTCMD localepurge +fi ## END OF FILE ################################################################# # vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=3