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 2787 by niro, Wed Feb 17 10:49:12 2016 UTC revision 2832 by niro, Wed Aug 30 13:54:01 2017 UTC
# Line 93  validate_client() Line 93  validate_client()
93   nsslsay_queue_add "get version.tools"   nsslsay_queue_add "get version.tools"
94   tools=$(control_client "${serial}" run-queue)   tools=$(control_client "${serial}" run-queue)
95   import_resource client_version "${serial}" utils "${tools}"   import_resource client_version "${serial}" utils "${tools}"
96     nsslsay_queue_init
97     nsslsay_queue_add "nocolors"
98     nsslsay_queue_add "get system.arch"
99     osarch=$(control_client "${serial}" run-queue)
100     import_resource client_version "${serial}" arch "${osarch}"
101    
102   # run hardware detection   # run hardware detection
103   if is_provided hardware   if is_provided hardware
# Line 125  register_client() Line 130  register_client()
130   decho "Could not resolve control server ip, dns_to_ip(${control_server}) failed"   decho "Could not resolve control server ip, dns_to_ip(${control_server}) failed"
131   return 1   return 1
132   fi   fi
133   iface_ip=$(iface_for_remote_addr ${control_server_ip})  
134   if [[ -z ${iface_ip} ]]   iface=$(iface_for_remote_addr ${control_server_ip})
135     if [[ -z ${iface} ]]
136   then   then
137   decho "Could not resolve interface ip, iface_ip(${control_server_ip}) failed"   decho "Could not resolve interface for referencing ip address, iface_for_remote_addr(${control_server_ip}) failed"
138   return 1   return 1
139   fi   fi
140   iface=$(iface_for_ip ${iface_ip})  
141   if [[ -z ${iface} ]]   iface_ip=$(get_iface_ip ${iface})
142     if [[ -z ${iface_ip} ]]
143   then   then
144   decho "Could not resolve interface for referencing ip address, iface_for_ip(${iface_ip}) failed"   decho "Could not resolve interface ip, get_ip(${iface}) failed"
145   return 1   return 1
146   fi   fi
147    
148   mac_address=$(mac_for_iface ${iface})   mac_address=$(mac_for_iface ${iface})
149   if [[ -z ${mac_address} ]]   if [[ -z ${mac_address} ]]
150   then   then

Legend:
Removed from v.2787  
changed lines
  Added in v.2832