125 |
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" |
126 |
return 1 |
return 1 |
127 |
fi |
fi |
128 |
|
|
129 |
iface_ip=$(iface_for_remote_addr ${control_server_ip}) |
iface_ip=$(iface_for_remote_addr ${control_server_ip}) |
130 |
if [[ -z ${iface_ip} ]] |
if [[ -z ${iface_ip} ]] |
131 |
then |
then |
132 |
decho "Could not resolve interface ip, iface_ip(${control_server_ip}) failed" |
decho "Could not resolve interface ip, iface_ip(${control_server_ip}) failed" |
133 |
return 1 |
return 1 |
134 |
fi |
fi |
135 |
|
|
136 |
iface=$(iface_for_ip ${iface_ip}) |
iface=$(iface_for_ip ${iface_ip}) |
137 |
if [[ -z ${iface} ]] |
if [[ -z ${iface} ]] |
138 |
then |
then |
139 |
decho "Could not resolve interface for referencing ip address, iface_for_ip(${iface_ip}) failed" |
decho "Could not resolve interface for referencing ip address, iface_for_ip(${iface_ip}) failed" |
140 |
return 1 |
return 1 |
141 |
fi |
fi |
142 |
|
|
143 |
mac_address=$(mac_for_iface ${iface}) |
mac_address=$(mac_for_iface ${iface}) |
144 |
if [[ -z ${mac_address} ]] |
if [[ -z ${mac_address} ]] |
145 |
then |
then |