From 6f9a191d76aa837d727fe047c67aae5829fede16 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Tue, 1 Jul 2014 13:37:05 -0300 Subject: Change default console from cons25 to xterm, while I'm here, simplify the check --- root/.profile | 2 +- root/.shrc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'root') diff --git a/root/.profile b/root/.profile index 2252b5f..cf2ea6a 100644 --- a/root/.profile +++ b/root/.profile @@ -1,5 +1,5 @@ # Detect interactive logins and display the shell -if [ `env | grep SSH_TTY | wc -l` -gt 0 ] || [ `env | grep cons25 | wc -l` -gt 0 ]; then +if [ -n "${SSH_TTY}" -o "${TERM}" = "xterm" ]; then /etc/rc.initial exit fi diff --git a/root/.shrc b/root/.shrc index 2252b5f..cf2ea6a 100644 --- a/root/.shrc +++ b/root/.shrc @@ -1,5 +1,5 @@ # Detect interactive logins and display the shell -if [ `env | grep SSH_TTY | wc -l` -gt 0 ] || [ `env | grep cons25 | wc -l` -gt 0 ]; then +if [ -n "${SSH_TTY}" -o "${TERM}" = "xterm" ]; then /etc/rc.initial exit fi -- cgit v1.1