aboutsummaryrefslogtreecommitdiff
path: root/rc.sysinit
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2012-06-15 23:49:58 (GMT)
committerTom Gundersen <teg@jklm.no>2012-06-16 00:33:42 (GMT)
commitcef9b198f20d25ba93c0d1dfc030951157c5e973 (patch)
tree7848d2e183c83959fdec26dce8c1f477d7972c76 /rc.sysinit
parentda385eb74e5f0f1ecf04a762cae221e69c68bbc6 (diff)
downloadinitscripts-cef9b198f20d25ba93c0d1dfc030951157c5e973.tar.xz
locale: make sure LANG is always set as this is used in vconsole-setup to decide if we want utf8 mode
We no longer use LOCALE, so no need to set this. Reported-by: Thomas B├Ąchler <thomas@archlinux.org> Signed-off-by: Tom Gundersen <teg@jklm.no>
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-xrc.sysinit3
1 files changed, 2 insertions, 1 deletions
diff --git a/rc.sysinit b/rc.sysinit
index 71eea91..4ce5ae5 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -67,7 +67,8 @@ udevd_modprobe sysinit
if [[ -s /etc/locale.conf ]]; then
parse_envfile /etc/locale.conf "LANG"
- [[ $LANG ]] && LOCALE=$LANG
+elif [[ $LOCALE ]]; then
+ export LANG=$LOCALE
fi
status 'Configuring Virtual Consoles' /usr/lib/systemd/systemd-vconsole-setup