From 4dcab887336688fd9750a0b1c913dcd7a65b6b86 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Fri, 8 Jun 2012 18:24:54 +0200 Subject: [PATCH 1/1] Include profiles in /usr/local/etc/profile.d as well as in /etc/profile.d --- sys/profile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.39.2