--- mcore-src/trunk/mcore-tools/daemon/client/include/vnc.client.class 2012/08/13 11:26:28 2023 +++ mcore-src/trunk/mcore-tools/daemon/client/include/vnc.client.class 2012/08/13 11:27:11 2024 @@ -24,12 +24,12 @@ set_vnc_enable() { # add to module section - local CONFIG="${MCORE_CONFIG_PATH}/xorg/module/99-vnc.conf" + local CONFIG="${MROOT}/${MCORE_CONFIG_PATH}/xorg/module/99-vnc.conf" clearconfig addconfig ' Load "vnc"' # add to screen section - local CONFIG="${MCORE_CONFIG_PATH}/xorg/screen/99-vnc.conf" + local CONFIG="${MROOT}/${MCORE_CONFIG_PATH}/xorg/screen/99-vnc.conf" clearconfig addconfig ' Option "SecurityTypes" "VncAuth"' addconfig ' Option "UserPasswdVerifier" "VncAuth"' @@ -43,10 +43,10 @@ set_vnc_disable() { - local CONFIG="${MCORE_CONFIG_PATH}/xorg/screen/99-vnc.conf" + local CONFIG="${MROOT}/${MCORE_CONFIG_PATH}/xorg/screen/99-vnc.conf" clearconfig - local CONFIG="${MCORE_CONFIG_PATH}/xorg/module/99-vnc.conf" + local CONFIG="${MROOT}/${MCORE_CONFIG_PATH}/xorg/module/99-vnc.conf" clearconfig # requires graphic! @@ -58,7 +58,7 @@ set_vnc_passwd() { local pass="$1" - local vncpasswd="/root/.vncpasswd" + local vncpasswd="${MROOT}/root/.vncpasswd" [[ -z ${pass} ]] && help_vnc_passwd && return 1 vncpasswd "${vncpasswd}" > /dev/null << EOF