summaryrefslogtreecommitdiffstats
path: root/root
diff options
context:
space:
mode:
Diffstat (limited to 'root')
-rw-r--r--root/.profile5
-rw-r--r--root/.shrc7
2 files changed, 10 insertions, 2 deletions
diff --git a/root/.profile b/root/.profile
new file mode 100644
index 0000000..2252b5f
--- /dev/null
+++ b/root/.profile
@@ -0,0 +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
+ /etc/rc.initial
+ exit
+fi
diff --git a/root/.shrc b/root/.shrc
index 31f5e2e..2252b5f 100644
--- a/root/.shrc
+++ b/root/.shrc
@@ -1,2 +1,5 @@
-/etc/rc.initial
-exit
+# Detect interactive logins and display the shell
+if [ `env | grep SSH_TTY | wc -l` -gt 0 ] || [ `env | grep cons25 | wc -l` -gt 0 ]; then
+ /etc/rc.initial
+ exit
+fi
OpenPOWER on IntegriCloud