Revision: 8278
http://sourceforge.net/p/astlinux/code/8278
Author: abelbeck
Date: 2017-04-26 16:27:16 +0000 (Wed, 26 Apr 2017)
Log Message:
-----------
core system, /etc/profile, call 'resize' for /dev/ttyUSB* devices to export LINES and COLUMNS variables
Modified Paths:
--------------
branches/1.0/project/astlinux/target_skeleton/etc/profile
Modified: branches/1.0/project/astlinux/target_skeleton/etc/profile
===================================================================
--- branches/1.0/project/astlinux/target_skeleton/etc/profile 2017-04-25 16:32:53 UTC (rev 8277)
+++ branches/1.0/project/astlinux/target_skeleton/etc/profile 2017-04-26 16:27:16 UTC (rev 8278)
@@ -34,6 +34,13 @@
stty erase ^?
fi
+# Set LINES and COLUMNS for USB TTY serial devices
+if [ -x /usr/bin/resize ]; then
+ case $(tty) in
+ /dev/ttyUSB*) resize >/dev/null ;;
+ esac
+fi
+
PS1='\[\033[01;31m\]\h \[\033[01;34m\]\W \$ \[\033[00m\]'
PS2='> '
PS4='+ '
@@ -45,7 +52,7 @@
alias rd='rmdir'
# prefer less over more
-if [ -f /usr/bin/less ]; then
+if [ -x /usr/bin/less ]; then
alias more=less
export PAGER=less
fi
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|