xref: /OK3568_Linux_fs/buildroot/system/skeleton/etc/profile (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1export PATH=@PATH@
2
3if [ "$PS1" ]; then
4  if [ "$BASH" ]; then
5    # The file bash.bashrc already sets the default PS1.
6    # PS1='\h:\w\$ '
7    if [ -f /etc/bash.bashrc ]; then
8      . /etc/bash.bashrc
9    fi
10  else
11    if [ "`id -u`" -eq 0 ]; then
12      PS1='# '
13    else
14      PS1='$ '
15    fi
16  fi
17fi
18
19export EDITOR='/bin/vi'
20
21# Source configuration files from /etc/profile.d
22for i in /etc/profile.d/*.sh ; do
23	if [ -r "$i" ]; then
24		. $i
25	fi
26done
27unset i
28