diff options
-rw-r--r-- | src/etc/skel/dot.profile | 15 | ||||
-rw-r--r-- | src/etc/skel/dot.shrc | 13 |
2 files changed, 26 insertions, 2 deletions
diff --git a/src/etc/skel/dot.profile b/src/etc/skel/dot.profile index 700597a..6ef0bee 100644 --- a/src/etc/skel/dot.profile +++ b/src/etc/skel/dot.profile @@ -1,5 +1,18 @@ # Detect interactive logins and display the shell -if [ -n "${SSH_TTY}" -o "${TERM}" = "cons25" ]; then +unset _interactive +if [ -n "${SSH_TTY}" ]; then + _interactive=1 +else + case "${TERM}" in + cons25|xterm|vt100|vt102|vt220) + _interactive=1 + ;; + esac +fi + +if [ -n "${_interactive}" ]; then + echo "INTERACTIVE" /etc/rc.initial exit fi + echo "NON" diff --git a/src/etc/skel/dot.shrc b/src/etc/skel/dot.shrc index d3c9208..e75c845 100644 --- a/src/etc/skel/dot.shrc +++ b/src/etc/skel/dot.shrc @@ -8,7 +8,18 @@ if [ "${HTTP_PROXY}" != "" ]; then fi # Detect interactive logins and display the shell -if [ -n "${SSH_TTY}" -o "${TERM}" = "cons25" ]; then +unset _interactive +if [ -n "${SSH_TTY}" ]; then + _interactive=1 +else + case "${TERM}" in + cons25|xterm|vt100|vt102|vt220) + _interactive=1 + ;; + esac +fi + +if [ -n "${_interactive}" ]; then /etc/rc.initial exit fi |