--- mcore-src/trunk/mcore-tools/src/include/daemon.global.class.in 2015/09/03 07:54:18 2426 +++ mcore-src/trunk/mcore-tools/src/include/daemon.global.class.in 2015/09/17 07:22:58 2553 @@ -96,6 +96,21 @@ fi } +run_push_config() +{ + local config + + for config in $(print_push_config) + do + if [[ -n $(typeset -f push_config_${config}) ]] + then + push_config_"${config}" + else + decho "no function 'push_config_${config}' for '${config}' found." + fi + done +} + help_topics() { local i @@ -242,6 +257,33 @@ return "${retval}" } +push_config() +{ + local push_configs="$@" + local i + + for i in ${push_configs} + do + # check for duplicate provides + if no_duplicate "${PUSH_CONFIG}" "${i}" + then + export PUSH_CONFIG="${PUSH_CONFIG} ${i}" + else + decho "duplicate push_config '${i}' detected!" + fi + done +} + +print_push_config() +{ + local sorted + + # sort them alpabetically + push_config=$(for i in ${PUSH_CONFIG}; do echo "${i}"; done | sort) + # do not escape, or CRLFS get printed to screen too + rvecho ${sorted} +} + help_daemon_mroot() { mecho "get daemon.mroot"