Magellan Linux

Diff of /trunk/initscripts/common/etc/profile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3 by niro, Mon Dec 13 22:52:07 2004 UTC revision 929 by niro, Thu Nov 5 12:55:50 2009 UTC
# Line 1  Line 1 
1  ### start /etc/profile ###  # /etc/profile: system-wide .profile file for bourne compatible shells
2    # $Id$
3    
4  if [ -e "/etc/profile.env" ]  if [ -e "/etc/profile.env" ]
5  then  then
6   source /etc/profile.env   source /etc/profile.env
7  fi  fi
8    
9  #077 would be more secure, but 022 is generally quite realistic  # 077 would be more secure, but 022 is generally quite realistic
10  umask 022  umask 022
11    
12  if [ `/usr/bin/whoami` = 'root' ]  if [ `/usr/bin/whoami` = 'root' ]
# Line 20  else Line 21  else
21   then   then
22   export PS1='\[\033[01;32m\]\u@\h \[\033[01;34m\]\W \$ \[\033[00m\]'   export PS1='\[\033[01;32m\]\u@\h \[\033[01;34m\]\W \$ \[\033[00m\]'
23   fi   fi
24   export PATH="/bin:/usr/bin:/usr/X11R6/bin:${PATH}"   export PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:${PATH}"
25  fi  fi
26  unset ROOTPATH  unset ROOTPATH
27    
# Line 31  fi Line 32  fi
32  if [ -z "$EDITOR" ]  if [ -z "$EDITOR" ]
33  then  then
34   source /etc/rc.config 2> /dev/null   source /etc/rc.config 2> /dev/null
35   #check if $EDITOR is still zero than use default   # check if $EDITOR is still zero than use default
36   if [ -z "${EDITOR}" ]   if [ -z "${EDITOR}" ]
37   then   then
38   EDITOR="/usr/bin/nano"   EDITOR="/usr/bin/nano"
39   fi   fi
40   export EDITOR   export EDITOR
41  fi  fi
   
 ### end /etc/profile ###  

Legend:
Removed from v.3  
changed lines
  Added in v.929