10 |
local os |
local os |
11 |
local tools |
local tools |
12 |
local netboot |
local netboot |
13 |
|
local location |
14 |
|
|
15 |
if [[ -z ${mac_address} ]] |
if [[ -z ${mac_address} ]] |
16 |
then |
then |
71 |
mysqldo "update state_connected set netboot='${netboot}' where serial=${serial};" |
mysqldo "update state_connected set netboot='${netboot}' where serial=${serial};" |
72 |
fi |
fi |
73 |
|
|
74 |
|
# get location from cmdline and update the client_serials.location entry |
75 |
|
nsslsay_queue_init |
76 |
|
nsslsay_queue_add "nocolors" |
77 |
|
nsslsay_queue_add "get system.cmdline MCORE_LOCATION=" |
78 |
|
location=$(control_client "${serial}" run-queue) |
79 |
|
# update location |
80 |
|
if [[ -n ${location} ]] |
81 |
|
then |
82 |
|
mysqldo "update client_serials set location='${location}' where serial=${serial};" |
83 |
|
fi |
84 |
|
|
85 |
# update tools and os version info |
# update tools and os version info |
86 |
nsslsay_queue_init |
nsslsay_queue_init |
87 |
nsslsay_queue_add "nocolors" |
nsslsay_queue_add "nocolors" |