Code: Select all
DV_CO_CODE="`echo "${CHOOSER2#=}" | grep DV\|CO\|`"
# DV_CO_CODE should have the list of all Config Options DV's
DV_CO_RESULT=""
for COUNTER in $DV_CO_CODE
do
NAME=${COUNTER%=*} # Get everything on the left side of the =.
VALUE=$COUNTER
pcomp_strip VALUE $NAME # Now we have the value.
if [ $VALUE == "true" ]; then
NAME=${NAME#DV\|CO\|} # Strip the DV/CO indicator
NAME=${NAME/\&/=} # Replace & with =
NAME=$NAME" " # Format to include trailing space
DV_CO_RESULT=$DV_CO_RESULT$NAME # Stick it together
fi
done