Magellan Linux

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

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

revision 2006 by niro, Mon Aug 13 09:40:07 2012 UTC revision 2007 by niro, Mon Aug 13 09:42:10 2012 UTC
# Line 365  path_not_empty() Line 365  path_not_empty()
365   # every thing went ok, directory not empty   # every thing went ok, directory not empty
366   return 0   return 0
367  }  }
368    
369    help_daemon_mroot()
370    {
371     mecho "get daemon.mroot"
372     mecho " Prints current MROOT variable."
373     mecho
374     mecho "set daemon.mroot [path]"
375     mecho " set MROOT variable to given path."
376    }
377    
378    get_daemon_mroot()
379    {
380     rvecho "${MROOT}"
381    }
382    
383    set_daemon_mroot()
384    {
385     local path=$1
386    
387     if [[ -d ${path} ]]
388     then
389     export MROOT="${path}"
390     decho "MROOT='${MROOT}' is set."
391     else
392     eecho "Path '${path}' does not exist. MROOT not set."
393     fi
394    }

Legend:
Removed from v.2006  
changed lines
  Added in v.2007