diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2017-04-21 17:45:29 -0700 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2017-06-30 17:43:14 +0200 |
commit | ab577aa582ff0f36d6e7883c0d45dafb9ac223ba (patch) | |
tree | 15a76119811bc5625b1c571fe170f272ded8ad0d | |
parent | b2060ea6d1665c17a542f2f177d5ca26b345dd8f (diff) |
profile: disable systemd color output
By default systemd utilities use escape sequences to produce colored
output. But systemd also uses less as a pager. The less command
provided in the Toradex demo images is provided by BusyBox, which
does not support color escape sequences. Disable colored output
altogether. This makes output of journalctl much more readable.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
-rw-r--r-- | recipes-core/base-files/base-files/profile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/recipes-core/base-files/base-files/profile b/recipes-core/base-files/base-files/profile index 6e2a6c7..22308ad 100644 --- a/recipes-core/base-files/base-files/profile +++ b/recipes-core/base-files/base-files/profile @@ -27,9 +27,10 @@ if [ -d /etc/profile.d ]; then fi test -z "$DISPLAY" && DISPLAY=":0.0" # have the X display defined, unless it is already set, e.g. by a ssh connection -export DISPLAY -export PATH PS1 OPIEDIR QPEDIR QTDIR EDITOR TERM +SYSTEMD_COLORS=0 + +export PATH PS1 OPIEDIR QPEDIR QTDIR EDITOR TERM DISPLAY SYSTEMD_COLORS # Serial consoles are not able to autoresize. Set size once upon login. if [ -x /usr/bin/resize ] && termpath="`tty`"; then |