mirror of
git://git.yoctoproject.org/poky
synced 2026-08-11 18:37:33 +00:00
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 <ting.liu@freescale.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
a40db96621
commit
73c481d2cb
@ -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
|
||||
|
||||
@ -102,6 +102,10 @@ do_install () {
|
||||
install -m 0644 ${WORKDIR}/host.conf ${D}${sysconfdir}/host.conf
|
||||
install -m 0644 ${WORKDIR}/motd ${D}${sysconfdir}/motd
|
||||
|
||||
if [ "/usr/bin" != "${bindir}" ]; then
|
||||
sed -i "s,/usr/bin/resize,${bindir}/resize," ${D}${sysconfdir}/profile
|
||||
fi
|
||||
|
||||
ln -sf /proc/mounts ${D}${sysconfdir}/mtab
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user