From 46decea7f5cbd3dd7d6ea7baa5f99f670e466c9d Mon Sep 17 00:00:00 2001 From: Ermal Date: Mon, 28 Apr 2014 18:15:40 +0000 Subject: Move the sh/profile files here as a more natural place to live in. --- root/.profile | 5 +++++ root/.shrc | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 root/.profile (limited to 'root') 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 -- cgit v1.1