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 |
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 |
|
|