Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/src/mcored.in

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

mcore-src/trunk/mcore-tools/daemon/client/mcored.in revision 2126 by niro, Fri Jan 10 08:54:27 2014 UTC mcore-src/trunk/mcore-tools/src/mcored.in revision 2258 by niro, Mon Jan 13 14:25:18 2014 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2    
3  MCLIBDIR="@@MCLIBDIR@@"  MCORE_LIBDIR="@@MCORE_LIBDIR@@"
4    
5  # respect system env (proxy settings etc)  # respect system env (proxy settings etc)
6  if [ -e @@ETCDIR@@/profile ]  if [ -e @@SYSCONFDIR@@/profile ]
7  then  then
8   source @@ETCDIR@@/profile   source @@SYSCONFDIR@@/profile
9  fi  fi
10    
11  # globals  # globals
12  source ${MCLIBDIR}/include/daemon.global.class  # include function comes with common.global class
13  source ${MCLIBDIR}/include/sessionauth.global.class  source ${MCORE_LIBDIR}/include/common.global.class
14  #source ${MCLIBDIR}/include/mysqlfunctions.global.class  include ${MCORE_LIBDIR}/include/daemon.global.class
15  source ${MCLIBDIR}/include/hwdetection.global.class  include ${MCORE_LIBDIR}/include/sessionauth.global.class
16    #include ${MCORE_LIBDIR}/include/mysqlfunctions.global.class
17    include ${MCORE_LIBDIR}/include/hwdetection.global.class
18    
19  # load client classes plugins  # load client classes plugins
20  load_client_classes  load_client_classes
21    
22  # config settings  # config settings
23  source @@ETCDIR@@/mcore/config.rc  include @@SYSCONFDIR@@/mcore/mcore.conf
24  #source @@ETCDIR@@/mcore/serial  #source @@SYSCONFDIR@@/mcore/serial
25    
26  # import_hardware_resource()  # import_hardware_resource()
27  # {  # {
# Line 100  do Line 102  do
102   ;;   ;;
103    
104   *)   *)
105   mecho "Unkown command '${line}'"   mecho "Unknown command '${line}'"
106   mecho "Type 'help' for more information."   mecho "Type 'help' for more information."
107   #echo "$line" >> /root/lala.log   #echo "$line" >> /root/lala.log
108   ;;   ;;

Legend:
Removed from v.2126  
changed lines
  Added in v.2258