Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/src/modules/tigervnc/vnc.control.class.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2618 by niro, Fri Sep 25 07:22:45 2015 UTC revision 2619 by niro, Fri Sep 25 08:14:48 2015 UTC
# Line 6  help_vnc_service() Line 6  help_vnc_service()
6  {  {
7   local serial="${CLASS_ARGV[0]}"   local serial="${CLASS_ARGV[0]}"
8   control_client "${serial}" help system.reboot   control_client "${serial}" help system.reboot
   
  mecho "get vnc.service"  
  mecho " Shows X0-VNC facility status."  
  mecho  
  mecho "set vnc.service [command]"  
  mecho " Controls the X0-VNC facility."  
  mecho " Commands:"  
  mecho "   enable  - Enable vnc for the X0 display"  
  mecho "   disable - Disable vnc for the X0 display"  
  mecho  
  mecho " X11 restart is required!"  
9  }  }
10    
11  help_vnc_passwd()  help_vnc_passwd()
# Line 72  push_config_80_vnc_service() Line 61  push_config_80_vnc_service()
61   value=$(mysqldo "select service from cfg_vnc where serial='${serial}'")   value=$(mysqldo "select service from cfg_vnc where serial='${serial}'")
62   if [[ -z ${value} ]] || [[ ${value} = NULL ]]   if [[ -z ${value} ]] || [[ ${value} = NULL ]]
63   then   then
64   decho "retval NULL, not running 'control_client '${serial}' set input.keymap '${value}''"   decho "retval NULL, not running 'control_client '${serial}' set vnc.service '${value}''"
65   else   else
66   case "${value}" in   case "${value}" in
67   0) action="disable" ;;   0) action="disable" ;;
# Line 91  push_config_80_vnc_passwd() Line 80  push_config_80_vnc_passwd()
80   value=$(mysqldo "select vnc from client_auth where serial='${serial}'")   value=$(mysqldo "select vnc from client_auth where serial='${serial}'")
81   if [[ ${value} = NULL ]]   if [[ ${value} = NULL ]]
82   then   then
83   decho "retval NULL, not running 'control_client '${serial}' set input.keymap '${value}''"   decho "retval NULL, not running 'control_client '${serial}' set vnc.passwd '${value}''"
84   else   else
85   control_client "${serial}" set vnc.passwd "${action}"   control_client "${serial}" set vnc.passwd "${value}"
86   fi   fi
87  }  }

Legend:
Removed from v.2618  
changed lines
  Added in v.2619