Changed files:
etc/profile -> 1.49
# example:
# cat /etc/env.d/VARIABLE
# VARIABLE="value"
-for i in /etc/env.d/* ; do
- NAME=`basename $i`
- case $NAME in
- *~ | *.bak | *.old | *.rpmnew | *.rpmsave )
- # nothing
- ;;
- * )
- if [ -r $i ]; then
- . $i; export $NAME
- fi
- ;;
- esac
-done
+if [ -f /etc/profile.env ]; then
+ . /etc/profile.env
+else
+ for i in /etc/env.d/* ; do
+ NAME=${i##*/}
+ case $NAME in
+ *~ | *.bak | *.old | *.rpmnew | *.rpmsave )
+ # nothing
+ ;;
+ * )
+ if [ -r $i ]; then
+ . $i; export $NAME
+ fi
+ ;;
+ esac
+ done
+ unset NAME
+fi
# Scripts:
for i in /etc/profile.d/*.sh ; do