summaryrefslogtreecommitdiff
path: root/functions/conffile.sh
diff options
context:
space:
mode:
Diffstat (limited to 'functions/conffile.sh')
-rwxr-xr-xfunctions/conffile.sh13
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