]> Untitled Git - hvlinux.git/commitdiff
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 b2067499547d21393e3c9505113f244b2bef1255..a4381dbd4e80d651686e0fc631be0b472b80c21e 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