diff options
Diffstat (limited to 'recipes-core')
-rw-r--r-- | recipes-core/base-files/base-files/profile | 11 |
1 files changed, 7 insertions, 4 deletions
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 |