diff options
Diffstat (limited to 'recipes')
-rw-r--r-- | recipes/base-files/base-files/profile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/recipes/base-files/base-files/profile b/recipes/base-files/base-files/profile index e6ec6d4..7b8b80d 100644 --- a/recipes/base-files/base-files/profile +++ b/recipes/base-files/base-files/profile @@ -32,7 +32,10 @@ export DISPLAY export PATH PS1 OPIEDIR QPEDIR QTDIR EDITOR TERM # Serial consoles are not able to autoresize. Set size once upon login. -resize +# 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 umask 022 |