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 475f3f20..74c31660 100755
--- a/lang.sh
+++ b/lang.sh
@@ -41,7 +41,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 stdout)
+ fi
if [ -n "$CHARSET" ]; then
case $CHARSET in