X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Fcasper-bottom%2F14locales;h=f69fa0f8978718e08e22dd7a8242083084398f53;hb=6c1a2cfab139bb4a61e7bcf5f4cafe3b7498f64e;hp=ebe76164dda15a8ded1fe1dcf183c6442ccc3b57;hpb=a4a7503df76005df67b006e1324004c808830c32;p=live-boot-grml.git diff --git a/scripts/casper-bottom/14locales b/scripts/casper-bottom/14locales index ebe7616..f69fa0f 100755 --- a/scripts/casper-bottom/14locales +++ b/scripts/casper-bottom/14locales @@ -27,6 +27,10 @@ elif [ -e /root/etc/environment ]; then # Old locales policy grep_file=/root/etc/environment fi +if [ -z "${grep_file}" ]; then + grep_file=/root/etc/default/locale +fi + # commandline for x in $(cat /proc/cmdline); do case $x in @@ -49,8 +53,12 @@ fi if [ "${set_locale}" ]; then LANG=$(grep "^${locale}" /root/usr/share/i18n/SUPPORTED | grep UTF-8 |sed -e 's, .*,,' -e q) - printf 'LANG="%s"\n' "${LANG}" >> "${grep_file}" - chroot /root /usr/sbin/locale-gen "${LANG}" + printf 'LANG="%s"\n' "${LANG}" >> "${grep_file}" + if [ "${BUILD_SYSTEM}" == "Debian" ]; then + chroot /root /usr/sbin/locale-gen + else + chroot /root /usr/sbin/locale-gen "${LANG}" + fi fi log_end_msg