Magellan Linux

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

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

revision 2044 by niro, Wed May 8 11:04:43 2013 UTC revision 2095 by niro, Fri Sep 27 07:48:24 2013 UTC
# Line 2  Line 2 
2    
3  MCLIBDIR="/usr/lib/mcored"  MCLIBDIR="/usr/lib/mcored"
4    
5    # respect system env (proxy settings etc)
6    if [ -e /etc/profile ]
7    then
8     source /etc/profile
9    fi
10    
11  # globals  # globals
12  source ${MCLIBDIR}/include/daemon.global.class  source ${MCLIBDIR}/include/daemon.global.class
13  source ${MCLIBDIR}/include/sessionauth.global.class  source ${MCLIBDIR}/include/sessionauth.global.class
# 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.2095