wok-tiny view base-tiny/stuff/etc/profile @ rev 128

busybox/mdev: restore /sys layout
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Apr 13 19:09:32 2017 +0200 (2017-04-13)
parents
children 8aceeb13c59a
line source
1 # /etc/profile: System-wide .profile file for the Bourne shells
3 PATH="/usr/sbin:/usr/bin:/sbin:/bin"
4 LD_LIBRARY_PATH="/usr/lib:/lib"
6 # Prompt format for Ash
7 # Light green and blue colored prompt.
8 PS1='\u@\h:\w\$ '
10 # Max 64M for programs (prevent memory leak crashes)
11 ulimit -d 65536
12 ulimit -m 65536
14 # Screen display for X and encoding for GTK+ apps.
15 [ -n "$DISPLAY" ] || DISPLAY=:0.0
16 G_FILENAME_ENCODING=UTF-8
18 # Export all variables defined above and set mask.
19 #
20 export PATH LD_LIBRARY_PATH PS1 DISPLAY G_FILENAME_ENCODING
21 umask 022
23 # Locale and timezone settings.
24 #
25 if [ -s "/etc/locale.conf" ]; then
26 . /etc/locale.conf
27 export LANG LC_ALL
28 fi
29 if [ -s "/etc/TZ" ]; then
30 TZ=`cat /etc/TZ`
31 export TZ
32 fi
33 ip=$(ifconfig eth0 2> /dev/null | awk '/inet addr/ { print substr($2,6) }')
34 case "$TERM" in
35 xterm*|rxvt*) echo -ne "\033]0;$(hostname) $(cat /etc/slitaz-release) $ip\007";;
36 esac