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 2754 by niro, Fri Sep 25 08:17:56 2015 UTC revision 2755 by niro, Tue Feb 2 14:11:44 2016 UTC
# Line 1  Line 1 
1  # $Id$  # $Id$
2    
3    push_firstboot 10_vnc_passwd
4    push_firstboot 80_vnc_service
5    
6  push_config 80_vnc_service 80_vnc_passwd  push_config 80_vnc_service 80_vnc_passwd
7    
8  help_vnc_service()  help_vnc_service()
# Line 89  push_config_80_vnc_passwd() Line 92  push_config_80_vnc_passwd()
92   control_client "${serial}" set vnc.passwd "${value}"   control_client "${serial}" set vnc.passwd "${value}"
93   fi   fi
94  }  }
95    
96    push_firstboot_80_vnc_service()
97    {
98     local serial="$1"
99    
100     # enable vnc service
101     decho "enable vnc service"
102     import_resource cfg_vnc "${serial}" "service" "1"
103    }
104    
105    push_firstboot_10_vnc_passwd()
106    {
107     local serial="$1"
108    
109     # now setup some empty database entries if the does not exist
110     auth=$(mysqldo "select vnc from client_auth where serial=${serial};")
111     if [[ -z ${auth} ]] || [[ ${auth} = NULL ]]
112     then
113     decho "set empty vnc pass"
114     import_resource client_auth "${serial}" "vnc" ""
115     fi
116    }

Legend:
Removed from v.2754  
changed lines
  Added in v.2755