Print this page
3395 add /etc/profile.d and /etc/.login.d
*** 19,28 ****
--- 19,30 ----
# CDDL HEADER END
#
# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
+ # Copyright 2013 Alexander Pyhalov. All rights reserved.
+ #
# The profile that all logins get before using their own .profile.
trap "" 2 3
export LOGNAME PATH
*** 60,68 ****
--- 62,81 ----
2)
echo "You have mail."
;;
esac
fi
+
+ if [ -d /etc/profile.d -a ! -f "${HOME}/.limited_profile" ]
+ then
+ for file in /etc/profile.d/*.sh ; do
+ if [ -f "$file" -a -r "$file" ]
+ then
+ source "$file"
+ fi
+ done
+ unset file
+ fi
esac
umask 022
trap 2 3