Magellan Linux

Contents of /branches/unlabeled-1.1.1/magellan-initscripts/etc/profile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations) (download)
Mon Dec 13 22:52:07 2004 UTC (19 years, 4 months ago) by niro
File size: 928 byte(s)
imported.

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 *