summaryrefslogtreecommitdiffstats
path: root/projectroot
diff options
context:
space:
mode:
authorClemens Gruber <clemens.gruber@pqgruber.com>2016-02-16 15:38:34 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2016-02-16 16:48:58 +0100
commit4b80774371eb754b97f2ce23363175e7c7d32c74 (patch)
tree7c47f9be9e04adc165dc67380dd43b5c1cb32e70 /projectroot
parent16bb800c961afadda6aa951091b29c979efdb255 (diff)
downloadptxdist-4b80774371eb754b97f2ce23363175e7c7d32c74.tar.gz
ptxdist-4b80774371eb754b97f2ce23363175e7c7d32c74.tar.xz
Export LANG environment variable for systemd
Signed-off-by: Clemens Gruber <clemens.gruber@pqgruber.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'projectroot')
-rw-r--r--projectroot/etc/profile.d/systemd.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/projectroot/etc/profile.d/systemd.sh b/projectroot/etc/profile.d/systemd.sh
index f51d8b949..c4aa9b322 100644
--- a/projectroot/etc/profile.d/systemd.sh
+++ b/projectroot/etc/profile.d/systemd.sh
@@ -1,2 +1,9 @@
+#!/bin/sh
+
+if [ -r /etc/locale.conf ]; then
+ . /etc/locale.conf
+ export LANG
+fi
+
# set 'r', otherwise less breaks UTF-8 chars without UTF-8 locale
export SYSTEMD_LESS="FrSXMK"