18 |
local monitor_resolution |
local monitor_resolution |
19 |
local keymap |
local keymap |
20 |
local hwdetected |
local hwdetected |
21 |
|
local auth |
22 |
local i |
local i |
23 |
|
|
24 |
if [[ -z ${serial} ]] |
if [[ -z ${serial} ]] |
106 |
# now setup some empty database entries if the does not exist |
# now setup some empty database entries if the does not exist |
107 |
for i in user root vnc |
for i in user root vnc |
108 |
do |
do |
109 |
if [[ -z $(mysqldo "select ${i} from client_auth where serial=${serial};") ]] |
auth=$(mysqldo "select ${i} from client_auth where serial=${serial};") |
110 |
|
if [[ -z ${auth} ]] || [[ ${auth} = NULL ]] |
111 |
then |
then |
112 |
decho "set empty ${i} pass" |
decho "set empty ${i} pass" |
113 |
import_resource client_auth "${serial}" "${i}" "" |
import_resource client_auth "${serial}" "${i}" "" |