9 |
local serial_id |
local serial_id |
10 |
local os |
local os |
11 |
local tools |
local tools |
12 |
|
local netboot |
13 |
|
|
14 |
if [[ -z ${mac_address} ]] |
if [[ -z ${mac_address} ]] |
15 |
then |
then |
70 |
tools=$(control_client "${serial}" run-queue) |
tools=$(control_client "${serial}" run-queue) |
71 |
import_resource client_version "${serial}" utils "${tools}" |
import_resource client_version "${serial}" utils "${tools}" |
72 |
|
|
73 |
|
# update netboot state too |
74 |
|
nsslsay_queue_init |
75 |
|
nsslsay_queue_add "nocolors" |
76 |
|
nsslsay_queue_add "get version.netboot" |
77 |
|
netboot=$(control_client "${serial}" run-queue) |
78 |
|
import_resource state_connected "${serial}" netboot "${netboot}" |
79 |
|
|
80 |
# run hardware detection |
# run hardware detection |
81 |
if is_provided hardware |
if is_provided hardware |
82 |
then |
then |