From 403864c4c25c81e350b87349942366177b031b83 Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Mon, 26 Aug 2013 21:30:34 -0400 Subject: [PATCH] Add sourcing of scripts in /etc/profile.d --- stage1/create-config-files | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.20.1