Fixed the creation of /etc/profile in HLFS module.
This commit is contained in:
parent
174a8e99ee
commit
5365c39cf4
2 changed files with 14 additions and 0 deletions
|
@ -515,6 +515,10 @@ EOF
|
|||
echo -e "\t@cp -f $CONFIG \$(MOUNT_PT)/sources/kernel-config" >> $MKFILE.tmp
|
||||
fi
|
||||
|
||||
case "${this_script}" in
|
||||
*profile* ) wrt_export_lang2 ;; # For /etc/profile we need to set LANG envar.
|
||||
esac
|
||||
|
||||
# Check if we have a real /etc/fstab file
|
||||
if [[ `_IS_ $this_script fstab` ]] && [[ -n "$FSTAB" ]] ; then
|
||||
wrt_copy_fstab "$this_script"
|
||||
|
@ -572,6 +576,8 @@ SRC= /sources
|
|||
MOUNT_PT= $BUILDDIR
|
||||
PAGE= $PAGE
|
||||
TIMEZONE= $TIMEZONE
|
||||
LC_ALL= $LC_ALL
|
||||
LANG= $LANG
|
||||
|
||||
include makefile-functions
|
||||
|
||||
|
|
|
@ -453,6 +453,14 @@ wrt_export_pagesize() { #
|
|||
#----------------------------------#
|
||||
wrt_export_lang() { #
|
||||
#----------------------------------#
|
||||
echo -e '\t@echo "export LANG=$(LANG)" > envars' >> $MKFILE.tmp
|
||||
}
|
||||
|
||||
|
||||
#----------------------------------#
|
||||
wrt_export_lang2() { #
|
||||
#----------------------------------#
|
||||
echo -e '\t@echo "export LC_ALL=$(LC_ALL)" > envars' >> $MKFILE.tmp
|
||||
echo -e '\t@echo "export LANG=$(LANG)" >> envars' >> $MKFILE.tmp
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue