On 7/29/14, 4:03 AM, ting....@freescale.com wrote:
From: Ting Liu <ting....@freescale.com>

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.

Signed-off-by: Ting Liu <ting....@freescale.com>
---
  meta/recipes-core/base-files/base-files/profile |    4 ++++
  1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/meta/recipes-core/base-files/base-files/profile 
b/meta/recipes-core/base-files/base-files/profile
index 0b2d9d7..88ab8d8 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
+

Not sure how useful this is -- but -- the code should dynamically check for ${bindir} instead of hard code /usr/bin here. On many systems people collapse 'bindir' down to just '/bin'.

So my suggestion would be an accompanying do_install step that corrects this reference if necessary.. something perhaps like:

if [ "/usr/bin" != "${bindir}" ]; then
    sed -i /usr/bin/resize -e "s,/usr/bin/resize,${bindir}/resize,"
fi

I'll leave it to others to discuss the merit of adding resize. (I don't object BTW).

  export PATH PS1 OPIEDIR QPEDIR QTDIR EDITOR TERM

  umask 022


--
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to