summaryrefslogtreecommitdiff
path: root/functions/conffile.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 10:04:49 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 18:18:29 +0100
commitda353a5231ad925013d01065768864307c70651a (patch)
tree589606906e4e8966797f352ec63162cbb4016da0 /functions/conffile.sh
parent068a51b175546dfeac45c747236817cb41db50d7 (diff)
downloadvyos-live-build-da353a5231ad925013d01065768864307c70651a.tar.gz
vyos-live-build-da353a5231ad925013d01065768864307c70651a.zip
Adding live-helper 1.0~a4-1.
Diffstat (limited to 'functions/conffile.sh')
-rwxr-xr-xfunctions/conffile.sh13
1 files changed, 6 insertions, 7 deletions
diff --git a/functions/conffile.sh b/functions/conffile.sh
index fab8dc1c4..bd5547e60 100755
--- a/functions/conffile.sh
+++ b/functions/conffile.sh
@@ -11,17 +11,16 @@ set -e
Read_conffile ()
{
- CONFFILE="${1}"
+ FILE="${1}"
- # Reading configuration file
- if [ -f "${CONFFILE}" ]
+ if [ -f "${FILE}" ]
then
- if [ -r "${CONFFILE}" ]
+ if [ -r "${FILE}" ]
then
- # Sourcing configurationfile
- . "${CONFFILE}"
+ Echo_debug "Reading configuration file ${FILE}"
+ . "${FILE}"
else
- echo "W: failed to read ${CONFFILE}"
+ Echo_warning "Failed to read configuration file ${FILE}"
fi
fi
}