summaryrefslogtreecommitdiffstats
path: root/root/.shrc
diff options
context:
space:
mode:
Diffstat (limited to 'root/.shrc')
-rw-r--r--root/.shrc2
1 files changed, 1 insertions, 1 deletions
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
OpenPOWER on IntegriCloud