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
commitc2f35bf62908313a60f9fa89bf3edeb4a2b472b2 (patch)
treed6a2f44c5ca2317195be2409bc9884b1212e5582
parentf9f20823fc46d508e6624bf429b0ae611e7c49f8 (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