# If the /etc/profile.d directory is not sourced automatically # append this code to /etc/profile # Load profiles from /etc/profile.d if test -d /etc/profile.d/; then for profile in /etc/profile.d/*.sh; do test -r "$profile" && . "$profile" done unset profile fi