slitaz-base-files annotate rootfs/etc/profile @ rev 34

will declare /etc/locale.conf /etc/TZ
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue May 13 01:02:07 2008 +0200 (2008-05-13)
parents 6553f10aba71
children d9469dd5238d
rev   line source
pascal@0 1 # /etc/profile: system-wide .profile file for the Bourne shells
pascal@0 2
pascal@0 3 PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
pascal@0 4 LD_LIBRARY_PATH="/usr/lib:/lib"
pascal@0 5
pascal@0 6 # Prompt format for Ash (Bash use /etc/bashrc).
pascal@0 7 #
pascal@0 8 if [ "`id -u`" -eq 0 ]; then
pascal@0 9 # Light green and blue colored prompt.
pankso@8 10 #PS1='\e[1;31m\u@\h\e[0m:\e[1;34m\w\e[0m\# '
pankso@8 11 PS1='\u@\h:\w\# '
pascal@0 12 else
pascal@0 13 # Light green and blue colored prompt.
pascal@0 14 PS1='\e[1;32m\u@\h\e[0m:\e[1;34m\w\e[0m\$ '
pascal@0 15 #PS1='\u@\h:\w\$ '
pascal@0 16 fi
pascal@0 17
pascal@0 18 # Screen display for X and encoding for GTK+ apps.
pascal@0 19 #
pascal@31 20 [ -n "$DISPLAY" ] || DISPLAY=:0.0
pascal@0 21 G_FILENAME_ENCODING=iso8859-1
pascal@0 22
pascal@1 23 # ldd fake
pascal@1 24 #
pascal@1 25 which ldd > /dev/null || alias ldd=LD_TRACE_LOADED_OBJECTS=1
pascal@1 26
pascal@0 27 # Export all variables definied above and set mask.
pascal@0 28 #
pascal@0 29 export PATH LD_LIBRARY_PATH PS1 DISPLAY G_FILENAME_ENCODING ignoreeof
pascal@0 30 umask 022
pascal@0 31
pascal@0 32 # Locale and timezone settings.
pascal@0 33 #
pascal@34 34 if [ -s "/etc/locale.conf" ]; then
pascal@0 35 . /etc/locale.conf
pascal@0 36 export LANG LC_ALL
pascal@0 37 fi
pascal@34 38 if [ -s "/etc/TZ" ]; then
pascal@0 39 TZ=`cat /etc/TZ`
pascal@0 40 export TZ
pascal@0 41 fi