From 9dafcac6b08a8e48946183bafff6c1b45fa4f236 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Tue, 17 May 2016 21:39:02 +0200 Subject: [PATCH] Extend configure module to allow making changes to custom.prf soon --- include/helper_configure | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/include/helper_configure b/include/helper_configure index cbdd5b06..02c750f4 100644 --- a/include/helper_configure +++ b/include/helper_configure @@ -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