Add sourcing of scripts in /etc/profile.d
authorHugo Villeneuve <hugo@hugovil.com>
Tue, 27 Aug 2013 01:30:34 +0000 (21:30 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Thu, 31 Jul 2014 02:15:23 +0000 (22:15 -0400)
stage1/create-config-files

index b206749..a4381db 100755 (executable)
@@ -89,6 +89,13 @@ LC_COLLATE=C
 LC_CTYPE=C
 
 export PATH MANPATH LANG LC_COLLATE LC_CTYPE PS1 PS2 USER LOGNAME MAIL HISTFILESIZE HISTSIZE HOSTNAME EDITOR CFLAGS CXXFLAGS
+
+for script in /etc/profile.d/*.sh ; do
+    if [ -r ${script} ]; then
+        . ${script}
+    fi
+done
+
 EOF
 
 sed -i -e "s!_DEFAULT_EDITOR_!${DEFAULT_EDITOR}!g" ${LFS}/etc/profile