DOMAIN=$( echo "${hostname}" | cut -d. -f2,3 )
SIMPLE_HOSTNAME=$( echo "${hostname}" | cut -d. -f1 )
+if [[ -z "${ip_address_eth0}" ]] ; then
+ ip_address_eth0="${IP_ADDRESS_ETH0}"
+fi
+
ROOT_PW_CRYPTED="\$6\$I0yXrNsT\$YU3ekjNLy1KTWLRVNww8YM1xtO8FXgTEFhOANS.HB8baj7CxNMRCoxDQh5oFYkZbli67s4pwZ36aNchD2YL.G0"
GIT_ACCOUNT="vmware-provisioning"
mv -v /etc/sysconfig/network "/etc/sysconfig/network.orig.$( date -r /etc/sysconfig/network +'%Y-%m-%d_%H:%M:%S' )"
mv -v "${tmp_nw_cfg}" /etc/sysconfig/network
+ echo "Generated /etc/sysconfig/network:"
+ cat /etc/sysconfig/network || true
+ echo
+
# Also set the hostname now, some applications require it
/bin/hostname "${hostname}"
mv -v "${ifcfg_file}" "${old_dir}"
done
mv -v "${dev_file}" "${nw_script_dir}"
-
rm -vrf "${temp_dir}"
+ echo "Generated ${nw_script_dir}/ifcfg-eth0:"
+ cat "${nw_script_dir}/ifcfg-eth0" || true
+ echo
+
}
#-----------------------------------------------------------