From: Hugo Villeneuve Date: Tue, 27 Aug 2013 01:30:34 +0000 (-0400) Subject: Add sourcing of scripts in /etc/profile.d X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=403864c4c25c81e350b87349942366177b031b83;p=hvlinux.git Add sourcing of scripts in /etc/profile.d --- diff --git a/stage1/create-config-files b/stage1/create-config-files index b206749..a4381db 100755 --- a/stage1/create-config-files +++ b/stage1/create-config-files @@ -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