summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2015-04-28 16:11:59 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2015-05-12 10:04:36 +0200
commit3a7f3cacecb6e12f5fd118ad862a23485e9a8ddb (patch)
tree1b96fe47aa9719b4b72871ae129652302a16acfc
parentfe1f0eb79c621452c2a897956a44bf7b92e882a4 (diff)
base-files: resize console automatic upon login
Use the resize command to set the size of the terminal once upon login. This is useful for serial console, where the default Unix signal which takes care of resizing the console (SIGWINCH) is not available.
-rw-r--r--recipes/base-files/base-files/profile3
1 files changed, 3 insertions, 0 deletions
diff --git a/recipes/base-files/base-files/profile b/recipes/base-files/base-files/profile
index c1ee240..e6ec6d4 100644
--- a/recipes/base-files/base-files/profile
+++ b/recipes/base-files/base-files/profile
@@ -31,5 +31,8 @@ export DISPLAY
export PATH PS1 OPIEDIR QPEDIR QTDIR EDITOR TERM
+# Serial consoles are not able to autoresize. Set size once upon login.
+resize
+
umask 022