From 73c481d2cbc3e7c7ef9f594126aec581ec75b689 Mon Sep 17 00:00:00 2001 From: Ting Liu Date: Thu, 31 Jul 2014 18:21:01 +0800 Subject: base-files: set dynamic COLUMNS via resize command By default, COLUMNS is set to 80. If possible, run 'resize' to determine what the current dimensions are. This avoids the final part of long lines overlap the start of the same line. (From OE-Core rev: cc6360f4c4d97e0000f9d3545f381224ee99ce7d) Signed-off-by: Ting Liu Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- meta/recipes-core/base-files/base-files/profile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'meta/recipes-core/base-files/base-files') diff --git a/meta/recipes-core/base-files/base-files/profile b/meta/recipes-core/base-files/base-files/profile index 0b2d9d79e5..88ab8d877b 100644 --- a/meta/recipes-core/base-files/base-files/profile +++ b/meta/recipes-core/base-files/base-files/profile @@ -26,6 +26,10 @@ if [ -d /etc/profile.d ]; then unset i fi +if [ -x /usr/bin/resize ];then + /usr/bin/resize >/dev/null +fi + export PATH PS1 OPIEDIR QPEDIR QTDIR EDITOR TERM umask 022 -- cgit v1.2.3-54-g00ecf