diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2017-04-03 14:48:25 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-04-10 23:00:42 +0100 |
commit | 227ec4809dbcdecd7a09392569f4464d9625d02a (patch) | |
tree | 7d693e2d71bebe574fa74dd3a6ffe0325ebfa432 /meta/recipes-core | |
parent | 104dac10f2c0fd60734157e974de3acbd0eb9a09 (diff) | |
download | poky-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/profile | 29 |
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 | |||
6 | test -z "$TERM" && TERM="vt100" # Basic terminal capab. For screen etc. | 6 | test -z "$TERM" && TERM="vt100" # Basic terminal capab. For screen etc. |
7 | 7 | ||
8 | if [ "$HOME" = "ROOTHOME" ]; then | 8 | if [ "$HOME" = "ROOTHOME" ]; then |
9 | PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin | 9 | PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin |
10 | fi | 10 | fi |
11 | if [ "$PS1" ]; then | 11 | if [ "$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\$ ' |
14 | fi | 14 | fi |
15 | 15 | ||
16 | if [ -d /etc/profile.d ]; then | 16 | if [ -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 |
23 | fi | 23 | fi |
24 | 24 | ||
25 | if [ -x /usr/bin/resize ] && termpath="`tty`"; then | 25 | if [ -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 | ||
31 | fi | 32 | fi |
32 | 33 | ||
33 | export PATH PS1 OPIEDIR QPEDIR QTDIR EDITOR TERM | 34 | export PATH PS1 OPIEDIR QPEDIR QTDIR EDITOR TERM |