1 |
# $Id$ |
# $Id$ |
2 |
|
|
3 |
|
# loads client classes from $MCLIBDIR |
4 |
|
load_client_classes() |
5 |
|
{ |
6 |
|
# client specific |
7 |
|
for i in ${MCLIBDIR}/include/*.client.class |
8 |
|
do |
9 |
|
source ${i} || eecho "error loading ${i}" |
10 |
|
done |
11 |
|
} |
12 |
|
|
13 |
|
# restarts the whole service via remote cmd |
14 |
|
restart_service() |
15 |
|
{ |
16 |
|
local pid |
17 |
|
for pid in $(pidof sslsvd) |
18 |
|
do |
19 |
|
kill -SIGHUP ${pid} |
20 |
|
done |
21 |
|
} |
22 |
|
|
23 |
# # import_resource $table $serial $resource $value |
# # import_resource $table $serial $resource $value |
24 |
# import_resource() |
# import_resource() |
25 |
# { |
# { |
84 |
mecho "\tauth - authenticate to the daemon" |
mecho "\tauth - authenticate to the daemon" |
85 |
mecho "\tprovide - shows provides of a system" |
mecho "\tprovide - shows provides of a system" |
86 |
mecho "\trequire - verify plugin requirements" |
mecho "\trequire - verify plugin requirements" |
87 |
|
mecho "\treload - reloads all client classes plugins" |
88 |
|
mecho "\trestart - restarts the daemon" |
89 |
mecho "\tnocolors - disable colors, useful for the webclient" |
mecho "\tnocolors - disable colors, useful for the webclient" |
90 |
mecho "\tquiet - do not print any unecessary messages" |
mecho "\tquiet - do not print any unecessary messages" |
91 |
mecho "\thelp - shows help" |
mecho "\thelp - shows help" |
108 |
# on newer xorg-servers root is not allowed to run progs in a user session |
# on newer xorg-servers root is not allowed to run progs in a user session |
109 |
x11runas() |
x11runas() |
110 |
{ |
{ |
111 |
if pidof X |
if [[ -n $(pidof X) ]] |
112 |
then |
then |
113 |
su - "${MCORE_UNPRIV_USER}" -c "DISPLAY=${MCORE_XORG_DISPLAY} $@" |
su - "${MCORE_UNPRIV_USER}" -c "DISPLAY=${MCORE_XORG_DISPLAY} $@" |
114 |
fi |
fi |
251 |
# sort them alpabetically |
# sort them alpabetically |
252 |
sorted=$(for i in ${PROVIDE}; do echo "${i}"; done | sort) |
sorted=$(for i in ${PROVIDE}; do echo "${i}"; done | sort) |
253 |
# do not escape, or CRLFS get printed to screen too |
# do not escape, or CRLFS get printed to screen too |
254 |
rvecho ${sorted} |
rvecho ${sorted} |
255 |
} |
} |
256 |
|
|
257 |
# message only echo | disabled in quiet mode |
# message only echo | disabled in quiet mode |