Extend configure module to allow making changes to custom.prf soon

This commit is contained in:
Michael Boelen 2016-05-17 21:39:02 +02:00
parent 7b819b4eca
commit 9dafcac6b0

View File

@ -71,7 +71,22 @@
FIND=$(echo ${HELPER_PARAMERS} | grep " ")
if [ ! "${FIND}" = "" ]; then ${ECHOCMD} "Found invalid character (space) in configuration string"; ExitFatal; fi
CONFIGURE_SETTINGS=$(echo $2 | sed 's/:/ /g')
for I in ${CONFIGURE_SETTINGS}; do
SETTING=$(echo ${I} | awk -F= '{print $1}')
VALUE=$(echo ${I} | awk -F= '{print $2}')
if [ "${VALUE}" = "" ]; then
Debug "Did not find a value configured on the command line for setting ${SETTING}"
#read VALUE
else
Debug "Setting '${SETTING}' should be configured with value '${VALUE}'"
fi
# Now check if value is in line with expected type (boolean, integer, string)
# =To be implemented=
done
${ECHOCMD} ""
${ECHOCMD} "${YELLOW}Note${NORMAL}: ${WHITE}Automatic configuration not fully implemented yet.${NORMAL}"
${ECHOCMD} ""
ExitClean
fi