summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2017-04-03 14:48:25 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-04-10 23:00:42 +0100
commit227ec4809dbcdecd7a09392569f4464d9625d02a (patch)
tree7d693e2d71bebe574fa74dd3a6ffe0325ebfa432 /meta/recipes-core
parent104dac10f2c0fd60734157e974de3acbd0eb9a09 (diff)
downloadpoky-227ec4809dbcdecd7a09392569f4464d9625d02a.tar.gz
base-files: profile: Whitespace clean up
(From OE-Core rev: 479a6202236832367bb48e4e089a6d99818685e5) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/base-files/base-files/profile29
1 files changed, 15 insertions, 14 deletions
diff --git a/meta/recipes-core/base-files/base-files/profile b/meta/recipes-core/base-files/base-files/profile
index c616616cee..22dfb4f219 100644
--- a/meta/recipes-core/base-files/base-files/profile
+++ b/meta/recipes-core/base-files/base-files/profile
@@ -6,28 +6,29 @@ EDITOR="vi" # needed for packages like cron, git-commit
6test -z "$TERM" && TERM="vt100" # Basic terminal capab. For screen etc. 6test -z "$TERM" && TERM="vt100" # Basic terminal capab. For screen etc.
7 7
8if [ "$HOME" = "ROOTHOME" ]; then 8if [ "$HOME" = "ROOTHOME" ]; then
9 PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin 9 PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin
10fi 10fi
11if [ "$PS1" ]; then 11if [ "$PS1" ]; then
12# works 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)
13 PS1='\u@\h:\w\$ ' 13 PS1='\u@\h:\w\$ '
14fi 14fi
15 15
16if [ -d /etc/profile.d ]; then 16if [ -d /etc/profile.d ]; then
17 for i in /etc/profile.d/*.sh ; do 17 for i in /etc/profile.d/*.sh; do
18 if [ -f $i -a -r $i ]; then 18 if [ -f $i -a -r $i ]; then
19 . $i 19 . $i
20 fi 20 fi
21 done 21 done
22 unset i 22 unset i
23fi 23fi
24 24
25if [ -x /usr/bin/resize ] && termpath="`tty`"; then 25if [ -x /usr/bin/resize ] && termpath="`tty`"; then
26 # Make sure we are on a serial console (i.e. the device used starts with /dev/tty), 26 # Make sure we are on a serial console (i.e. the device used starts with
27 # otherwise we confuse e.g. the eclipse launcher which tries do use ssh 27 # /dev/tty[A-z]), otherwise we confuse e.g. the eclipse launcher which
28 case "$termpath" in 28 # tries do use ssh
29 /dev/tty[A-z]*) resize >/dev/null 29 case "$termpath" in
30 esac 30 /dev/tty[A-z]*) resize >/dev/null
31 esac
31fi 32fi
32 33
33export PATH PS1 OPIEDIR QPEDIR QTDIR EDITOR TERM 34export PATH PS1 OPIEDIR QPEDIR QTDIR EDITOR TERM