summaryrefslogtreecommitdiffstats
path: root/src/etc/skel/dot.profile
blob: 6ef0bee7541a8dd92cda0134d7e7f283767962e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Detect interactive logins and display the shell
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