base-files: resize only serial tty's in profile

Message ID 1490293700-17717-1-git-send-email-daniel.diaz@linaro.org
State Superseded
Headers show

Commit Message

Daniel Díaz March 23, 2017, 6:28 p.m.
Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org>
---
 meta/recipes-core/base-files/base-files/profile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Patrick Ohly March 23, 2017, 7:03 p.m. | #1
On Thu, 2017-03-23 at 12:28 -0600, Daniel Díaz wrote:
> Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org>

Can you extend your commit message and add an explanation of why this
change is desirable?

Patch

diff --git a/meta/recipes-core/base-files/base-files/profile b/meta/recipes-core/base-files/base-files/profile
index 7367fd1..c616616 100644
--- a/meta/recipes-core/base-files/base-files/profile
+++ b/meta/recipes-core/base-files/base-files/profile
@@ -26,7 +26,7 @@  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
+  /dev/tty[A-z]*) resize >/dev/null
   esac
 fi