--- mcore-src/trunk/mcore-tools/daemon/include/daemon.global.class 2012/08/13 09:40:07 2006 +++ mcore-src/trunk/mcore-tools/daemon/include/daemon.global.class 2012/08/13 09:42:10 2007 @@ -365,3 +365,30 @@ # every thing went ok, directory not empty return 0 } + +help_daemon_mroot() +{ + mecho "get daemon.mroot" + mecho " Prints current MROOT variable." + mecho + mecho "set daemon.mroot [path]" + mecho " set MROOT variable to given path." +} + +get_daemon_mroot() +{ + rvecho "${MROOT}" +} + +set_daemon_mroot() +{ + local path=$1 + + if [[ -d ${path} ]] + then + export MROOT="${path}" + decho "MROOT='${MROOT}' is set." + else + eecho "Path '${path}' does not exist. MROOT not set." + fi +}