Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/daemon/client/mcored.sh

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

revision 1916 by niro, Wed Nov 9 13:24:37 2011 UTC revision 2052 by niro, Wed May 8 11:20:11 2013 UTC
# Line 52  QUIET="false" Line 52  QUIET="false"
52  run=run  run=run
53  valid_session=no  valid_session=no
54    
55    # tell what we are
56    echo "Connected to $(print_version)"
57    
58  while [[ ${run} = run ]]  while [[ ${run} = run ]]
59  do  do
60   read line   read line
# Line 66  do Line 69  do
69   auth*) validate_auth ${line/auth /} ;;   auth*) validate_auth ${line/auth /} ;;
70   provide) valid_session && print_provide ;;   provide) valid_session && print_provide ;;
71   require) valid_session && verify_requirements ;;   require) valid_session && verify_requirements ;;
72   reload) valid_session && echo "reloading client classes ..." && load_client_classes ;;   reload) valid_session && mecho "reloading client classes ..." && load_client_classes ;;
73   restart) valid_session && restart_service ;;   restart) valid_session && restart_service ;;
74     stop) valid_session && stop_service ;;
75   nocolors) export NOCOLORS="true" ;;   nocolors) export NOCOLORS="true" ;;
76     colors) export NOCOLORS="false" ;;
77   webcrlf) export WEBCRLF="true" ;;   webcrlf) export WEBCRLF="true" ;;
78   quiet) export QUIET="true" ;;   quiet) export QUIET="true" ;;
79     # version does not need auth
80     version) print_version ;;
81   help*)   help*)
82   if valid_session   if valid_session
83   then   then

Legend:
Removed from v.1916  
changed lines
  Added in v.2052