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 2077 by niro, Fri May 10 10:46:47 2013 UTC revision 2083 by niro, Fri May 10 13:14:35 2013 UTC
# Line 450  print_version() Line 450  print_version()
450  {  {
451   echo "mcored-$(<${MCLIBDIR}/VERSION)"   echo "mcored-$(<${MCLIBDIR}/VERSION)"
452  }  }
453    
454    system_chroot()
455    {
456     local cmd="$@"
457     if [[ -z ${MROOT} ]]
458     then
459     echo "system_chroot(): \$MROOT was not set, doing nothing!"
460     return 1
461     fi
462     if [ ! -d ${MROOT} ]
463     then
464     eecho "system_chroot(): MROOT='${MROOT}' does not exist."
465     return 1
466     fi
467    
468     chroot ${MROOT} ${cmd}
469    }
470    

Legend:
Removed from v.2077  
changed lines
  Added in v.2083