diff options
author | Daniel Baumann <daniel@debian.org> | 2008-04-07 12:01:37 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2008-04-07 12:01:37 +0200 |
commit | af3aebda730fb5752ffdcdd6afceb6cb64d05a6f (patch) | |
tree | bd7e2000588e9684937c1260dd950ea4710b2c36 /functions/conffile.sh | |
parent | e79e733e4919956db0c26eb8801beaeeb1d357a5 (diff) | |
download | vyos-live-build-af3aebda730fb5752ffdcdd6afceb6cb64d05a6f.tar.gz vyos-live-build-af3aebda730fb5752ffdcdd6afceb6cb64d05a6f.zip |
Centraly evaluate LH_CONFIG for custom configuration file.
Diffstat (limited to 'functions/conffile.sh')
-rwxr-xr-x | functions/conffile.sh | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/functions/conffile.sh b/functions/conffile.sh index e36584a7e..17121b8c0 100755 --- a/functions/conffile.sh +++ b/functions/conffile.sh @@ -11,10 +11,15 @@ set -e Read_conffile () { - FILES="${1} ${1}.${LH_ARCHITECTURE} ${1}.${DISTRIBUTION}" - FILES="${FILES} config/$(echo ${PROGRAM} | sed -e 's|^lh_||')" - FILES="${FILES} config/$(echo ${PROGRAM} | sed -e 's|^lh_||').${ARCHITECTURE}" - FILES="${FILES} config/$(echo ${PROGRAM} | sed -e 's|^lh_||').${DISTRIBUTION}" + if [ -n "${LH_CONFIG}" ] + then + FILES="${LH_CONFIG}" + else + FILES="${1} ${1}.${LH_ARCHITECTURE} ${1}.${DISTRIBUTION}" + FILES="${FILES} config/$(echo ${PROGRAM} | sed -e 's|^lh_||')" + FILES="${FILES} config/$(echo ${PROGRAM} | sed -e 's|^lh_||').${ARCHITECTURE}" + FILES="${FILES} config/$(echo ${PROGRAM} | sed -e 's|^lh_||').${DISTRIBUTION}" + fi for FILE in ${FILES} do |