summaryrefslogtreecommitdiffstats
path: root/projectroot/etc/profile
blob: 259113d3330dea3b26e18825fe386485dc3385fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# /etc/profile - config for init-shell
#
export HISTFILE=/tmp/.ash_history.$USER.$PPID

# This fixes the backspace when telnetting in.
if [ "$TERM" != "linux" ]; then
        stty erase ^H
fi

# source this file for subsequent shells, too
# (will also be sourced for init-shell)
export ENV=/etc/profile.environment

# Exec profile provided by other packages
if [ -d /etc/profile.d ]; then
	for file in /etc/profile.d/*.sh; do
		if [ -r $file ]; then
			. $file
		fi
	done
	unset file
fi
# Exec local profile
if [ -e "/etc/profile.local" ]; then
	echo "running /etc/profile.local"
	. /etc/profile.local
fi