Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/src/include/daemon.global.class.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2552 by niro, Thu Sep 3 07:54:18 2015 UTC revision 2553 by niro, Thu Sep 17 07:22:58 2015 UTC
# Line 96  run_class() Line 96  run_class()
96   fi   fi
97  }  }
98    
99    run_push_config()
100    {
101     local config
102    
103     for config in $(print_push_config)
104     do
105     if [[ -n $(typeset -f push_config_${config}) ]]
106     then
107     push_config_"${config}"
108     else
109     decho "no function 'push_config_${config}' for '${config}' found."
110     fi
111     done
112    }
113    
114  help_topics()  help_topics()
115  {  {
116   local i   local i
# Line 242  is_provided() Line 257  is_provided()
257   return "${retval}"   return "${retval}"
258  }  }
259    
260    push_config()
261    {
262     local push_configs="$@"
263     local i
264    
265     for i in ${push_configs}
266     do
267     # check for duplicate provides
268     if no_duplicate "${PUSH_CONFIG}" "${i}"
269     then
270     export PUSH_CONFIG="${PUSH_CONFIG} ${i}"
271     else
272     decho "duplicate push_config '${i}' detected!"
273     fi
274     done
275    }
276    
277    print_push_config()
278    {
279     local sorted
280    
281     # sort them alpabetically
282     push_config=$(for i in ${PUSH_CONFIG}; do echo "${i}"; done | sort)
283     # do not escape, or CRLFS get printed to screen too
284     rvecho ${sorted}
285    }
286    
287  help_daemon_mroot()  help_daemon_mroot()
288  {  {
289   mecho "get daemon.mroot"   mecho "get daemon.mroot"

Legend:
Removed from v.2552  
changed lines
  Added in v.2553