[arch-projects] [initscripts][PATCH 1/2] locale: make sure LANG is always set as this is used in vconsole-setup to decide if we want utf8 mode
Tom Gundersen
teg at jklm.no
Fri Jun 15 20:24:54 EDT 2012
Reported-by: Thomas Bächler <thomas at archlinux.org>
Signed-off-by: Tom Gundersen <teg at jklm.no>
---
rc.sysinit | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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
--
1.7.10.4
More information about the arch-projects
mailing list