Magellan Linux

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

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

revision 2304 by niro, Mon Jan 20 14:07:32 2014 UTC revision 2432 by niro, Thu Sep 3 12:29:10 2015 UTC
# Line 89  echo "Connected to $(print_version)" Line 89  echo "Connected to $(print_version)"
89    
90  while [[ ${run} = run ]]  while [[ ${run} = run ]]
91  do  do
92     # use an echo here not read -p '>' because sslsvd ignores the prompt pattern
93     echo -n '> '
94   read line   read line
95   eval "GLOBAL_ARGV=( ${line} )"   eval "GLOBAL_ARGV=( ${line} )"
96    
# Line 101  do Line 103  do
103   get) run_class ;;   get) run_class ;;
104   set) run_class ;;   set) run_class ;;
105   auth) validate_auth ${GLOBAL_ARGV[*]:1} ;;   auth) validate_auth ${GLOBAL_ARGV[*]:1} ;;
106     certauth) validate_auth_certificate ${GLOBAL_ARGV[*]:1} ;;
107     register) valid_session && validate_client ${GLOBAL_ARGV[*]:1} ;;
108   provide) valid_session && print_provide ;;   provide) valid_session && print_provide ;;
109   require) valid_session && verify_requirements ;;   require) valid_session && verify_requirements ;;
110   reload) valid_session && mecho "reloading client classes ..." && load_classes client ;;   reload) valid_session && mecho "reloading client classes ..." && load_classes client ;;
# Line 124  do Line 128  do
128   else   else
129   mecho "You must authenticate yourself first!"   mecho "You must authenticate yourself first!"
130   mecho "  auth [username] [password]"   mecho "  auth [username] [password]"
131     mecho "or"
132     mecho "  certauth [certificate fingerprint]"
133   fi   fi
134   ;;   ;;
135    

Legend:
Removed from v.2304  
changed lines
  Added in v.2432