summaryrefslogtreecommitdiffstats
path: root/root/.shrc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-04-28 18:15:40 +0000
committerErmal <eri@pfsense.org>2014-04-28 18:16:02 +0000
commit46decea7f5cbd3dd7d6ea7baa5f99f670e466c9d (patch)
treef63e92d0cee1c839124867add032edf895b8e7a3 /root/.shrc
parent2a50fd8ac8a1b02e25316ffeb856942c6b4f7c8f (diff)
downloadpfsense-46decea7f5cbd3dd7d6ea7baa5f99f670e466c9d.zip
pfsense-46decea7f5cbd3dd7d6ea7baa5f99f670e466c9d.tar.gz
Move the sh/profile files here as a more natural place to live in.
Diffstat (limited to 'root/.shrc')
-rw-r--r--root/.shrc7
1 files changed, 5 insertions, 2 deletions
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