Magellan Linux

Contents of /tags/init-0_3_3-r6/magellan-initscripts/etc/profile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 108 - (show annotations) (download)
Fri Jul 1 18:19:19 2005 UTC (18 years, 10 months ago) by (unknown author)
File size: 928 byte(s)
This commit was manufactured by cvs2svn to create tag
'init-0_3_3-r6'.
1 ### start /etc/profile ###
2
3 if [ -e "/etc/profile.env" ]
4 then
5 source /etc/profile.env
6 fi
7
8 #077 would be more secure, but 022 is generally quite realistic
9 umask 022
10
11 if [ `/usr/bin/whoami` = 'root' ]
12 then
13 if [ "$SHELL" = '/bin/bash' ] || [ "$SHELL" = '/bin/sh' ]
14 then
15 export PS1='\[\033[01;31m\]\h \[\033[01;34m\]\W \$ \[\033[00m\]'
16 fi
17 export PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:${ROOTPATH}"
18 else
19 if [ "$SHELL" = '/bin/bash' ] || [ "$SHELL" = '/bin/sh' ]
20 then
21 export PS1='\[\033[01;32m\]\u@\h \[\033[01;34m\]\W \$ \[\033[00m\]'
22 fi
23 export PATH="/bin:/usr/bin:/usr/X11R6/bin:${PATH}"
24 fi
25 unset ROOTPATH
26
27 if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
28 export INPUTRC="/etc/inputrc"
29 fi
30
31 if [ -z "$EDITOR" ]
32 then
33 source /etc/rc.config 2> /dev/null
34 #check if $EDITOR is still zero than use default
35 if [ -z "${EDITOR}" ]
36 then
37 EDITOR="/usr/bin/nano"
38 fi
39 export EDITOR
40 fi
41
42 ### end /etc/profile ###

Properties

Name Value
svn:executable *