aboutsummaryrefslogtreecommitdiffstats
path: root/lang.sh
diff options
context:
space:
mode:
Diffstat (limited to 'lang.sh')
-rwxr-xr-xlang.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/lang.sh b/lang.sh
index 3e485a22..ae02ed01 100755
--- a/lang.sh
+++ b/lang.sh
@@ -46,7 +46,10 @@ if [ "$sourced" = 1 ]; then
[ -n "$LINGUAS" ] && export LINGUAS || unset LINGUAS
[ -n "$_XKB_CHARSET" ] && export _XKB_CHARSET || unset _XKB_CHARSET
- consoletype=$(/sbin/consoletype)
+ consoletype=$CONSOLETYPE
+ if [ -z "$consoletype" ]; then
+ consoletype=$(/sbin/consoletype)
+ fi
if [ -n "$LANG" ]; then
case $LANG in