define LANG before starting pcscd so that the CCID driver and PC pinpad
can use the correct language
This commit is contained in:
parent
5daceb0a9a
commit
f2293e8322
|
@ -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
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue