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() |
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 |
|
} |