Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/src/include/register.global.class.in

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

revision 2505 by niro, Fri Sep 11 07:36:40 2015 UTC revision 2506 by niro, Fri Sep 11 09:53:49 2015 UTC
# Line 7  validate_client() Line 7  validate_client()
7   local serial   local serial
8   local mtime   local mtime
9   local serial_id   local serial_id
10     local os
11     local tools
12    
13   if [[ -z ${mac_address} ]]   if [[ -z ${mac_address} ]]
14   then   then
# Line 55  validate_client() Line 57  validate_client()
57   mysqldo "insert into state_connected(serial,ip,mac,mtime) values('${serial}','${ip_address}','${mac_address}','${mtime}');"   mysqldo "insert into state_connected(serial,ip,mac,mtime) values('${serial}','${ip_address}','${mac_address}','${mtime}');"
58   fi   fi
59    
60     # update tools and os version info
61     nsslsay_queue_init
62     nsslsay_queue_add "nocolors"
63     nsslsay_queue_add "get version.os"
64     os=$(control_client "${serial}" run-queue)
65     import_resource client_version "${serial}" os "${os}"
66     nsslsay_queue_init
67     nsslsay_queue_add "nocolors"
68     nsslsay_queue_add "get version.tools"
69     os=$(control_client "${serial}" run-queue)
70     import_resource client_version "${serial}" utils "${tools}"
71    
72   # run hardware detection   # run hardware detection
73   if is_provided hardware   if is_provided hardware
74   then   then

Legend:
Removed from v.2505  
changed lines
  Added in v.2506