Adding casper 1.65+debian-1.
[live-boot-grml.git] / scripts / casper-bottom / 14locales
index 6d5b73c..ebe7616 100755 (executable)
@@ -34,6 +34,10 @@ for x in $(cat /proc/cmdline); do
                        locale=${x#debian-installer/locale=}
                        set_locale="true"
                        ;;
+               locale=*)
+                       locale=${x#locale=}
+                       set_locale="true"
+                       ;;
        esac
 done
 
@@ -43,7 +47,7 @@ if [ -z "${locale}" ]; then
        set_locale="true"
 fi
 
-if [ ! -z "${set_locale}" ]; then
+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}"