]> arthur.barton.de Git - ConfigScripts.git/commitdiff
Include profiles in /usr/local/etc/profile.d as well as in /etc/profile.d
authorAlexander Barton <alex@barton.de>
Fri, 8 Jun 2012 16:24:54 +0000 (18:24 +0200)
committerAlexander Barton <alex@barton.de>
Fri, 8 Jun 2012 16:24:54 +0000 (18:24 +0200)
sys/profile

index 8fac5d53d88108ed78e55533e784b9db6d10d71f..09d13180959acd0aaad36d9711eb9f477a618db0 100644 (file)
@@ -97,8 +97,8 @@ if [ -z "$XAUTHORITY" -a -r ~/.Xauthority ]; then
 fi
 
 # read profile additions
-if [ -d /etc/profile.d ]; then
-       for f in /etc/profile.d/*; do
+if [ -d /etc/profile.d -o -d /usr/local/etc/profile.d ]; then
+       for f in /etc/profile.d/* /usr/local/etc/profile.d/*; do
                [ -r "$f" ] || continue
                case "$f" in
                        *.csh)