X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F14locales;h=bdb1d8b766104be879b2bc93e6c6c0eddb6e9118;hb=refs%2Ftags%2Fdebian%2F1.99.1-1;hp=21025693febfce39ab1b9e94d5ecad901b074309;hpb=ea5ccacffb14572b4800d14fc9eea23cad7ca893;p=live-boot-grml.git diff --git a/scripts/live-bottom/14locales b/scripts/live-bottom/14locales index 2102569..bdb1d8b 100755 --- a/scripts/live-bottom/14locales +++ b/scripts/live-bottom/14locales @@ -1,24 +1,30 @@ -#! /bin/sh +#!/bin/sh -PREREQ="" -DESCRIPTION="Setting up locales..." +#set -e -. /scripts/live-functions +# initramfs-tools header + +PREREQ="" prereqs() { - echo "$PREREQ" + echo "${PREREQ}" } -case $1 in -# get pre-requisites -prereqs) - prereqs - exit 0 - ;; +case "${1}" in + prereqs) + prereqs + exit 0 + ;; esac -log_begin_msg "$DESCRIPTION" +# live-initramfs header + +. /scripts/live-functions + +log_begin_msg "Setting up locales..." + +# live-initramfs script if [ -e /root/etc/default/locale ]; then grep_file=/root/etc/default/locale @@ -64,7 +70,7 @@ if [ "${set_locale}" ]; then really_export LANG - if [ "${BUILD_SYSTEM}" == "Ubuntu" ]; then + if [ "${BUILD_SYSTEM}" = "Ubuntu" ]; then printf 'LANG="%s"\n' "${LANG}" > "${grep_file}" chroot /root /usr/sbin/locale-gen "${LANG}" live-preseed /root debian-installer/locale "${locale}"