From: Alexander Barton Date: Fri, 8 Jun 2012 16:24:54 +0000 (+0200) Subject: Include profiles in /usr/local/etc/profile.d as well as in /etc/profile.d X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ConfigScripts.git;a=commitdiff_plain;h=4dcab887336688fd9750a0b1c913dcd7a65b6b86 Include profiles in /usr/local/etc/profile.d as well as in /etc/profile.d --- diff --git a/sys/profile b/sys/profile index 8fac5d5..09d1318 100644 --- a/sys/profile +++ b/sys/profile @@ -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)