diff options
Diffstat (limited to 'functions/conffile.sh')
-rwxr-xr-x | functions/conffile.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/functions/conffile.sh b/functions/conffile.sh new file mode 100755 index 000000000..5df00d3c5 --- /dev/null +++ b/functions/conffile.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +# conffile.sh - handle configuration files + +set -e + +Read_conffile () +{ + CONFFILE="${1}" + + # Reading configuration file + if [ -r "${CONFFILE}" ] + then + . "${CONFFILE}" + fi +} |