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 2479 by niro, Thu Sep 10 08:48:45 2015 UTC revision 2480 by niro, Thu Sep 10 10:41:11 2015 UTC
# Line 34  DEBUG=1 Line 34  DEBUG=1
34  NOCOLORS=0  NOCOLORS=0
35  WEBCRLF=0  WEBCRLF=0
36  QUIET=0  QUIET=0
37    # daemon silent mode, read from env
38    : ${SILENT=0}
39    
40  # argvs are global variables - this fixes issues with whitespaces  # argvs are global variables - this fixes issues with whitespaces
41  # global argvs, the whole command line  # global argvs, the whole command line
# Line 45  run=run Line 47  run=run
47  valid_session=no  valid_session=no
48    
49  # tell what we are  # tell what we are
50  echo "Connected to $(print_version)"  [[ ${SILENT} = 1 ]] || echo "Connected to $(print_version)"
51    
52  while [[ ${run} = run ]]  while [[ ${run} = run ]]
53  do  do
54   # use an echo here not read -p '>' because sslsvd ignores the prompt pattern   # use an echo here not read -p '>' because sslsvd ignores the prompt pattern
55   echo -n '> '   [[ ${SILENT} = 1 ]] || echo -n '> '
56   read line   read line
57   eval "GLOBAL_ARGV=( ${line} )"   eval "GLOBAL_ARGV=( ${line} )"
58    

Legend:
Removed from v.2479  
changed lines
  Added in v.2480