From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mail.openembedded.org (Postfix) with ESMTP id 864E3771DB for ; Tue, 9 Aug 2016 00:19:14 +0000 (UTC) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP; 08 Aug 2016 17:19:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,492,1464678000"; d="scan'208";a="862012591" Received: from bavery-ws-desk.jf.intel.com ([10.7.201.28]) by orsmga003.jf.intel.com with ESMTP; 08 Aug 2016 17:19:14 -0700 From: bavery To: openembedded-core@lists.openembedded.org Date: Mon, 8 Aug 2016 17:20:32 -0700 Message-Id: X-Mailer: git-send-email 1.9.1 In-Reply-To: References: MIME-Version: 1.0 Subject: =?UTF-8?B?W1BBVENIIDEvMV0gYmFzZS1maWxlczogcmVzdHJpY3QgcmVzaXplIHRvIHJ1biBvbiBzZXJpYWwgY29uc29sZXMgb25seSBpbiBwcm9maWxlIOKUgsK3?= X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Aug 2016 00:19:16 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We don't need/wan't to run resize on an ssh connection. It's useless and it breaks the Eclipse SSH debug connection. So, we added a check. YOCTO #9362 Signed-off-by: bavery --- recipes-core/base-files/base-files/profile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/recipes-core/base-files/base-files/profile b/recipes-core/base-files/base-files/profile index e98e786..ba1b9ba 100644 --- a/recipes-core/base-files/base-files/profile +++ b/recipes-core/base-files/base-files/profile @@ -6,7 +6,7 @@ EDITOR="vi" # needed for packages like cron, git-commit test -z "$TERM" && TERM="vt100" # Basic terminal capab. For screen etc. if [ ! -e /etc/localtime -a ! -e /etc/TZ ]; then - TZ="UTC" # Time Zone. Look at http://theory.uwinnipeg.ca/gnu/glibc/libc_303.html + TZ="UTC" # Time Zone. Look at http://theory.uwinnipeg.ca/gnu/glibc/libc_303.html # for an explanation of how to set this to your local timezone. export TZ fi @@ -29,10 +29,11 @@ if [ -d /etc/profile.d ]; then fi if [ -x /usr/bin/resize ];then - /usr/bin/resize >/dev/null + # 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 + test `tty | cut -c1-8` = "/dev/tty" && resize >/dev/null fi export PATH PS1 OPIEDIR QPEDIR QTDIR EDITOR TERM umask 022 - -- 1.9.1