diff options
author | Tudor Florea <tudor.florea@enea.com> | 2014-10-16 03:05:19 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2014-10-16 03:05:19 +0200 |
commit | c527fd1f14c27855a37f2e8ac5346ce8d940ced2 (patch) | |
tree | bb002c1fdf011c41dbd2f0927bed23ecb5f83c97 /meta/recipes-core/base-files/base-files/profile | |
download | poky-c527fd1f14c27855a37f2e8ac5346ce8d940ced2.tar.gz |
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-core/base-files/base-files/profile')
-rw-r--r-- | meta/recipes-core/base-files/base-files/profile | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-core/base-files/base-files/profile b/meta/recipes-core/base-files/base-files/profile new file mode 100644 index 0000000000..8eeaac3693 --- /dev/null +++ b/meta/recipes-core/base-files/base-files/profile | |||
@@ -0,0 +1,32 @@ | |||
1 | # /etc/profile: system-wide .profile file for the Bourne shell (sh(1)) | ||
2 | # and Bourne compatible shells (bash(1), ksh(1), ash(1), ...). | ||
3 | |||
4 | PATH="/usr/local/bin:/usr/bin:/bin" | ||
5 | EDITOR="/bin/vi" # needed for packages like cron | ||
6 | test -z "$TERM" && TERM="vt100" # Basic terminal capab. For screen etc. | ||
7 | |||
8 | if [ ! -e /etc/localtime ]; then | ||
9 | TZ="UTC" # Time Zone. Look at http://theory.uwinnipeg.ca/gnu/glibc/libc_303.html | ||
10 | # for an explanation of how to set this to your local timezone. | ||
11 | export TZ | ||
12 | fi | ||
13 | |||
14 | if [ "$HOME" = "ROOTHOME" ]; then | ||
15 | PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin | ||
16 | fi | ||
17 | if [ "$PS1" ]; then | ||
18 | # works for bash and ash (no other shells known to be in use here) | ||
19 | PS1='\u@\h:\w\$ ' | ||
20 | fi | ||
21 | |||
22 | if [ -d /etc/profile.d ]; then | ||
23 | for i in /etc/profile.d/* ; do | ||
24 | . $i | ||
25 | done | ||
26 | unset i | ||
27 | fi | ||
28 | |||
29 | export PATH PS1 OPIEDIR QPEDIR QTDIR EDITOR TERM | ||
30 | |||
31 | umask 022 | ||
32 | |||