#---------------------------------------------------------------------------- # /etc/profile - global profile # # Copyright (c) 2001-2004 Frank Meyer # # 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 eisfair!" gn echo "base : $version" echo "eiskernel: $eiskernel (`uname -r`)" echo PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin; export PATH # if [ `id -G | awk -v 'RS= ' '{if ($1=="0") print $1 }'` ] if [ "$LOGNAME" = "root" ] then PS1="`hostname` # " MAIL=/var/spool/mail/root; export MAIL else PS1="`hostname` > " fi export PS1 if [ -f /var/run/environment ] then . /var/run/environment for j in `grep '^[A-Za-z].*=' /var/run/environment | sed 's/=.*//g'` do export $j done fi if [ "$LOGNAME" != "root" ] then PATH=$PATH:. fi