Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 76304 - /etc/profile.d isn't source'd in /etc/profile
Summary: /etc/profile.d isn't source'd in /etc/profile
Status: RESOLVED DUPLICATE of bug 4854
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-01 07:20 UTC by Stefan Briesenick (RETIRED)
Modified: 2005-07-17 13:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Briesenick (RETIRED) gentoo-dev 2005-01-01 07:20:51 UTC
I would suggest to add the following extention for /etc/profile:

# Source profile extensions for certain packages
#
if [ -d /etc/profile.d ] ; then
    for s in /etc/profile.d/*.sh ; do
        [ -x "$s" ] && . "$s"
    done
    unset s
fi


with the "test -x" it is possible to enable/disable single scripts w/o deleting them (just set or unset the X-flag). It's not needed otherwise.

Reproducible: Always
Steps to Reproduce:
Comment 1 SpanKY gentoo-dev 2005-01-01 13:01:22 UTC

*** This bug has been marked as a duplicate of 4854 ***