summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/base-files
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/base-files')
-rw-r--r--meta/recipes-core/base-files/base-files/profile14
1 files changed, 6 insertions, 8 deletions
diff --git a/meta/recipes-core/base-files/base-files/profile b/meta/recipes-core/base-files/base-files/profile
index ceaf15f799..a062028226 100644
--- a/meta/recipes-core/base-files/base-files/profile
+++ b/meta/recipes-core/base-files/base-files/profile
@@ -3,15 +3,13 @@
3 3
4PATH="/usr/local/bin:/usr/bin:/bin" 4PATH="/usr/local/bin:/usr/bin:/bin"
5EDITOR="vi" # needed for packages like cron, git-commit 5EDITOR="vi" # needed for packages like cron, git-commit
6test -z "$TERM" && TERM="vt100" # Basic terminal capab. For screen etc. 6[ "$TERM" ] || TERM="vt100" # Basic terminal capab. For screen etc.
7 7
8if [ "$HOME" = "ROOTHOME" ]; then 8# Add /sbin & co to $PATH for the root user
9 PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin 9[ "$HOME" != "ROOTHOME" ] || PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin
10fi 10
11if [ "$PS1" ]; then 11# Set the prompt for bash and ash (no other shells known to be in use here)
12 # works for bash and ash (no other shells known to be in use here) 12[ -z "$PS1" ] || PS1='\u@\h:\w\$ '
13 PS1='\u@\h:\w\$ '
14fi
15 13
16if [ -d /etc/profile.d ]; then 14if [ -d /etc/profile.d ]; then
17 for i in /etc/profile.d/*.sh; do 15 for i in /etc/profile.d/*.sh; do