16 |
|
|
17 |
# config settings |
# config settings |
18 |
source /etc/mcore/config.rc |
source /etc/mcore/config.rc |
19 |
source /etc/mcore/serial |
#source /etc/mcore/serial |
20 |
|
|
21 |
# import_hardware_resource() |
# import_hardware_resource() |
22 |
# { |
# { |
48 |
# } |
# } |
49 |
|
|
50 |
DEBUG=1 |
DEBUG=1 |
51 |
|
NOCOLORS="false" |
52 |
|
WEBCRLF="false" |
53 |
|
QUIET="false" |
54 |
|
|
55 |
run=run |
run=run |
56 |
valid_session=no |
valid_session=no |
67 |
get*) run_class ${line} ;; |
get*) run_class ${line} ;; |
68 |
set*) run_class ${line} ;; |
set*) run_class ${line} ;; |
69 |
auth*) validate_auth ${line/auth /} ;; |
auth*) validate_auth ${line/auth /} ;; |
70 |
provide) print_provide ;; |
provide) valid_session && print_provide ;; |
71 |
require) verify_requirements ;; |
require) valid_session && verify_requirements ;; |
72 |
|
nocolors) export NOCOLORS="true" ;; |
73 |
|
webcrlf) export WEBCRLF="true" ;; |
74 |
|
quiet) export QUIET="true" ;; |
75 |
help*) |
help*) |
76 |
if validate_session |
if valid_session |
77 |
then |
then |
78 |
if [[ ${line} = help ]] |
if [[ ${line} = help ]] |
79 |
then |
then |
94 |
;; |
;; |
95 |
esac |
esac |
96 |
done |
done |
97 |
|
|