aboutsummaryrefslogtreecommitdiffstats
path: root/cron-sh/functions.sh
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2010-08-25 13:19:16 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2010-08-25 13:19:16 +0000
commit601bebcbd03939955ba9031a7209b8bbf6310d46 (patch)
treeb39a505f48ed66fef0fe3dcad426b534c0ab1459 /cron-sh/functions.sh
parent55c140419a9f95e0c72eb85e6c8604160ff87724 (diff)
downloadmsec-601bebcbd03939955ba9031a7209b8bbf6310d46.tar
msec-601bebcbd03939955ba9031a7209b8bbf6310d46.tar.gz
msec-601bebcbd03939955ba9031a7209b8bbf6310d46.tar.bz2
msec-601bebcbd03939955ba9031a7209b8bbf6310d46.tar.xz
msec-601bebcbd03939955ba9031a7209b8bbf6310d46.zip
Improved logic for checking for /etc/sysconfig/i18n (thanks Blino!)
Diffstat (limited to 'cron-sh/functions.sh')
-rw-r--r--cron-sh/functions.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/cron-sh/functions.sh b/cron-sh/functions.sh
index 123ae11..a7fe6cf 100644
--- a/cron-sh/functions.sh
+++ b/cron-sh/functions.sh
@@ -1,12 +1,11 @@
#!/bin/bash
# msec: shared function
-if [[ -f /etc/sysconfig/i18n ]]; then
- . /etc/sysconfig/i18n
-fi
-
if [[ -f /etc/profile.d/10lang.sh ]]; then
. /etc/profile.d/10lang.sh
+elif [[ -f /etc/sysconfig/i18n ]]; then
+ # for older distros without 10lang.sh
+ . /etc/sysconfig/i18n
fi
if [[ -f /etc/security/msec/security.conf ]]; then