diff options
author | Daniel Baumann <daniel@debian.org> | 2007-09-23 10:04:47 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 18:18:28 +0100 |
commit | 677415f6d7efc1e5b888570d70af311d2900c69c (patch) | |
tree | 32fe7ced768666c229fff913fe12cbbf2fdd34e4 /functions/conffile.sh | |
parent | 811ff0532fcb3305ebefcd1d61e4eb6c260902eb (diff) | |
download | vyos-live-build-677415f6d7efc1e5b888570d70af311d2900c69c.tar.gz vyos-live-build-677415f6d7efc1e5b888570d70af311d2900c69c.zip |
Adding live-helper 1.0~a2-1.
Diffstat (limited to 'functions/conffile.sh')
-rwxr-xr-x | functions/conffile.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/functions/conffile.sh b/functions/conffile.sh index 5df00d3c5..0cd8d2934 100755 --- a/functions/conffile.sh +++ b/functions/conffile.sh @@ -9,8 +9,13 @@ Read_conffile () CONFFILE="${1}" # Reading configuration file - if [ -r "${CONFFILE}" ] + if [ -f "${CONFFILE}" ] then - . "${CONFFILE}" + if [ -r "${CONFFILE}" ] + then + . "${CONFFILE}" + else + echo "W: failed to read ${CONFFILE}" + fi fi } |