#---------------------------------------------------------------------------- # /etc/profile - global profile # # Copyright (c) 2001-2007 The Eisfair Team, # # Creation: 08.08.2001 fm # Last Update: $Id$ # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #---------------------------------------------------------------------------- umask 022 cd $HOME # for ash: prevent call of /bin/pwd if [ "$TERM" != "xterm" ] then TERM='linux' fi export TERM version=`cat /etc/version` eiskernel=`grep "" /var/install/packages/eiskernel 2>/dev/null | sed 's###g'` echo /usr/local/bin/colecho "Welcome to eisxen!" gn echo "base : $version" echo "eiskernel: $eiskernel (`uname -r`)" echo PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin; export PATH if [ "$LOGNAME" = "root" ] then PS1="`hostname` # " else PS1="`hostname` > " fi MAIL=/var/spool/mail/$LOGNAME export PS1 MAIL envfile='/etc/environment' if [ -f $envfile ] then . $envfile for j in `grep '^[A-Za-z].*=' $envfile | sed 's/=.*//g'` do export $j done if `echo "$LC_CTYPE" | grep -iq 'UTF-8'` then unicode_start 2>/dev/null fi fi if [ "$LOGNAME" != "root" ] then PATH=$PATH:. fi LANG="C" export LANG alias ls='ls --color=auto' ### Patch for not working unicode on certain terminals ### (those where /usr/bin/unicode_start does not work): #readlink /proc/self/fd/0 | grep -q -e /dev/vc -e '/dev/tty[^p]' -e /dev/console #if [ $? -eq 1 ]; then # # not a VT, no functionality of UTF8 possible (yet) # LC_CTYPE="de_DE@euro"; export LC_CTYPE #fi