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' ] |
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 ### |
|