|
|
|
@ -25,15 +25,16 @@ depend() {
|
|
|
|
|
variable_value()
|
|
|
|
|
{
|
|
|
|
|
local varname=$1
|
|
|
|
|
cl-core-variables-show --only-value client.$varname
|
|
|
|
|
cl-core-variables-show --only-value $varname
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
start() {
|
|
|
|
|
# Mount remote Samba filesystems.
|
|
|
|
|
# Identifing domain server by cl-client variables
|
|
|
|
|
local SERVER=`variable_value cl_remote_host`
|
|
|
|
|
local SERVERLIVE=`variable_value cl_remote_host_live`
|
|
|
|
|
local SERVERPW=`variable_value cl_remote_pw`
|
|
|
|
|
local SERVER=$(variable_value client.cl_remote_host)
|
|
|
|
|
local SERVERLIVE=$(variable_value client.cl_remote_host_live)
|
|
|
|
|
local SERVERPW=$(variable_value client.cl_remote_pw)
|
|
|
|
|
local TEMPLATES=$(variable_value main.cl_template_location)
|
|
|
|
|
[[ -z $SERVERLIVE ]] && SERVERLIVE=$SERVER
|
|
|
|
|
|
|
|
|
|
if [[ -n $SERVERLIVE ]]
|
|
|
|
@ -61,7 +62,7 @@ start() {
|
|
|
|
|
fi
|
|
|
|
|
if [[ -z $SERVER ]]
|
|
|
|
|
then
|
|
|
|
|
LANG=C cl-client -T overlay,local $SERVERLIVE && res=$? &&
|
|
|
|
|
LANG=C cl-client -T ${TEPLATES/,remote/} $SERVERLIVE && res=$? &&
|
|
|
|
|
cl-setup-system -T remote &>/dev/null
|
|
|
|
|
else
|
|
|
|
|
LANG=C cl-client --mount
|
|
|
|
|