diff options
author | Eugeni Dodonov <eugeni@mandriva.org> | 2010-08-25 13:19:16 +0000 |
---|---|---|
committer | Eugeni Dodonov <eugeni@mandriva.org> | 2010-08-25 13:19:16 +0000 |
commit | 601bebcbd03939955ba9031a7209b8bbf6310d46 (patch) | |
tree | b39a505f48ed66fef0fe3dcad426b534c0ab1459 /cron-sh/functions.sh | |
parent | 55c140419a9f95e0c72eb85e6c8604160ff87724 (diff) | |
download | msec-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.sh | 7 |
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 |