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 | 9d132ea3cf75562ef5610dd6ff1c89d0cffa334d (patch) | |
tree | f41417d8d8c982156a23b87c61082ebc18517ec6 | |
parent | 713f2179721cacb866214c66754ea922e7652fa0 (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.
-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 |