Adding upstream version 1.87.5.
[live-boot-grml.git] / scripts / live-bottom / 14locales
index 2102569..bdb1d8b 100755 (executable)
@@ -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}"