summaryrefslogtreecommitdiffstats
path: root/src/etc/skel/dot.profile
diff options
context:
space:
mode:
Diffstat (limited to 'src/etc/skel/dot.profile')
-rw-r--r--src/etc/skel/dot.profile15
1 files changed, 14 insertions, 1 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"
OpenPOWER on IntegriCloud