From 9a6f3e2e1abb658f33df1850eb2b609bd726aa37 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Tue, 20 Dec 2016 14:28:46 +0100 Subject: profile: redirect resize output to /dev/null oe-core included resize in their profile too. Synchronize with the OE solution which already does the redirect. Signed-off-by: Max Krummenacher Acked-by: Stefan Agner --- recipes-core/base-files/base-files/profile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'recipes-core') diff --git a/recipes-core/base-files/base-files/profile b/recipes-core/base-files/base-files/profile index 7b8b80d..6e2a6c7 100644 --- a/recipes-core/base-files/base-files/profile +++ b/recipes-core/base-files/base-files/profile @@ -32,10 +32,13 @@ export DISPLAY export PATH PS1 OPIEDIR QPEDIR QTDIR EDITOR TERM # Serial consoles are not able to autoresize. Set size once upon login. -# Make sure we are on a serial console (i.e. the device used starts with /dev/tty), -# otherwise we confuse e.g. the eclipse launcher which tries do use ssh -LOGINDEV=`tty | cut -c1-8` -test "$LOGINDEV" = "/dev/tty" && resize +if [ -x /usr/bin/resize ] && termpath="`tty`"; then + # Make sure we are on a serial console (i.e. the device used starts with /dev/tty), + # otherwise we confuse e.g. the eclipse launcher which tries do use ssh + case "$termpath" in + /dev/tty*) resize >/dev/null + esac +fi umask 022 -- cgit v1.2.3