define LANG before starting pcscd so that the CCID driver and PC pinpad

can use the correct language
This commit is contained in:
Ludovic Rousseau 2007-10-23 19:57:51 +00:00
parent 5daceb0a9a
commit f2293e8322
1 changed files with 8 additions and 0 deletions

View File

@ -37,6 +37,14 @@ SCRIPTNAME=/etc/init.d/$NAME
# Define LSB log_* functions.
. /lib/lsb/init-functions
# get LANG variable (code from /etc/init.d/keymap.sh)
ENV_FILE="none"
[ -r /etc/environment ] && ENV_FILE="/etc/environment"
[ -r /etc/default/locale ] && ENV_FILE="/etc/default/locale"
value=$(egrep "^[^#]*LANG=" $ENV_FILE | tail -n1 | cut -d= -f2)
eval LANG=$value
#
# Function that starts the daemon/service
#