diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2015-07-01 10:33:34 +0200 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2015-07-01 10:33:34 +0200 |
commit | 3fd259ab802ad4863b1cff8acc8b2040ad525fdd (patch) | |
tree | 0bbaf77064d421509a4f710ccd411ac5bf2d51cc /recipes | |
parent | 35cc380fd7ff280f89611e327378b474752445e1 (diff) |
base-files: execute resize only on a serial console
The resize command confuses Eclipse's launcher.
On a ssh console resize isn't needed anyway so only start it if
the console device starts with /dev/tty to work around the issue.
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 |