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 129 by niro, Sat Jul 2 19:51:34 2005 UTC
# Line 1  Line 1 
1  ### start /etc/profile ###  # /etc/profile: system-wide .profile file for bourne compatible shells
2    # $Header: /home/cvsd/magellan-cvs/magellan-src/magellan-initscripts/etc/profile,v 1.2 2005-07-02 19:50:44 niro Exp $
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 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.129