Skip to content

Commit abd86b1

Browse files
committed
board/common: add missing /etc/profile
Needed to source /etc/profile.d/*.sh at login. Signed-off-by: Joachim Wiberg <[email protected]>
1 parent 9069b8f commit abd86b1

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

board/common/rootfs/etc/profile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
2+
3+
if [ "$PS1" ]; then
4+
if [ "${BASH-}" ] && [ "$BASH" != "/bin/sh" ]; then
5+
if [ -f /etc/bash.bashrc ]; then
6+
. /etc/bash.bashrc
7+
fi
8+
else
9+
if [ "`id -u`" -eq 0 ]; then
10+
export PS1='# '
11+
else
12+
export PS1='$ '
13+
fi
14+
fi
15+
16+
export COLORTERM=truecolor
17+
fi
18+
19+
export EDITOR='/bin/vi'
20+
21+
# Source configuration files from /etc/profile.d
22+
for i in /etc/profile.d/*.sh ; do
23+
if [ -r "$i" ]; then
24+
. $i
25+
fi
26+
done
27+
unset i

0 commit comments

Comments
 (0)