From 4ba178362821f07389848939a29d017dbc580285 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Sun, 8 Feb 2015 18:34:46 +0000 Subject: i18n: ensure preferred locale.conf is read (over sysconfig/i18n) --- draklive-install.xsetup | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'draklive-install.xsetup') diff --git a/draklive-install.xsetup b/draklive-install.xsetup index e6df573..812612c 100755 --- a/draklive-install.xsetup +++ b/draklive-install.xsetup @@ -1,7 +1,16 @@ #!/bin/sh # to be sourced if grep -q '\binstall\b' /proc/cmdline; then - . /etc/sysconfig/i18n + if [ -r /etc/locale.conf -o -r /etc/sysconfig/i18n ]; then + unset LANG LANGUAGE LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY \ + LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT \ + LC_IDENTIFICATION + if [ -r /etc/locale.conf ]; then + . /etc/locale.conf + else + . /etc/sysconfig/i18n + fi + fi /usr/sbin/draklive-install reboot fi -- cgit v1.2.1