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.sh revision 2044 by niro, Wed May 8 11:04:43 2013 UTC mcore-src/trunk/mcore-tools/daemon/client/mcored.in revision 2137 by niro, Fri Jan 10 10:16:41 2014 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2    
3  MCLIBDIR="/usr/lib/mcored"  MCORE_LIBDIR="@@MCORE_LIBDIR@@"
4    
5    # respect system env (proxy settings etc)
6    if [ -e @@SYSCONFDIR@@/profile ]
7    then
8     source @@SYSCONFDIR@@/profile
9    fi
10    
11  # globals  # globals
12  source ${MCLIBDIR}/include/daemon.global.class  source ${MCORE_LIBDIR}/include/daemon.global.class
13  source ${MCLIBDIR}/include/sessionauth.global.class  source ${MCORE_LIBDIR}/include/sessionauth.global.class
14  #source ${MCLIBDIR}/include/mysqlfunctions.global.class  #source ${MCORE_LIBDIR}/include/mysqlfunctions.global.class
15  source ${MCLIBDIR}/include/hwdetection.global.class  source ${MCORE_LIBDIR}/include/hwdetection.global.class
16    
17  # load client classes plugins  # load client classes plugins
18  load_client_classes  load_client_classes
19    
20  # config settings  # config settings
21  source /etc/mcore/config.rc  source @@SYSCONFDIR@@/mcore/config.rc
22  #source /etc/mcore/serial  #source @@SYSCONFDIR@@/mcore/serial
23    
24  # import_hardware_resource()  # import_hardware_resource()
25  # {  # {
# Line 52  QUIET="false" Line 58  QUIET="false"
58  run=run  run=run
59  valid_session=no  valid_session=no
60    
61    # tell what we are
62    echo "Connected to $(print_version)"
63    
64  while [[ ${run} = run ]]  while [[ ${run} = run ]]
65  do  do
66   read line   read line
# Line 74  do Line 83  do
83   webcrlf) export WEBCRLF="true" ;;   webcrlf) export WEBCRLF="true" ;;
84   quiet) export QUIET="true" ;;   quiet) export QUIET="true" ;;
85   # version does not need auth   # version does not need auth
86   version) echo "${VERSION}" ;;   version) print_version ;;
87   help*)   help*)
88   if valid_session   if valid_session
89   then   then

Legend:
Removed from v.2044  
changed lines
  Added in v.2137