dhcpd.conf fix ;

This commit is contained in:
mischa 2018-10-06 09:55:14 +02:00
parent be6d55da28
commit c1d16e6f77
1 changed files with 5 additions and 5 deletions

View File

@ -202,13 +202,13 @@ render_dhcpd_conf() {
. "$f"
_instance=$(check_instance "$f" "$instance")
printf "\\thost %s {\\n" "$_instance"
printf "\\t\\thardware ethernet %s\\n" "$(fetch_mac "$MAC_PREFIX" "$(find_vm "$VMS" "$_instance")")"
printf "\\t\\tfixed-address %s\\n" "$(fetch_ip "$IP_PREFIX" "$IP_START" "$(find_vm "$VMS" "$_instance")")"
printf "\\t\\thardware ethernet %s;\\n" "$(fetch_mac "$MAC_PREFIX" "$(find_vm "$VMS" "$_instance")")"
printf "\\t\\tfixed-address %s;\\n" "$(fetch_ip "$IP_PREFIX" "$IP_START" "$(find_vm "$VMS" "$_instance")")"
if ! test -f "${IMAGES}/${_instance}.img"
then printf "\\t\\tfilename \"auto_install\"\\n"
else printf "\\t\\tfilename \"auto_upgrade\"\\n"
then printf "\\t\\tfilename \"auto_install\";\\n"
else printf "\\t\\tfilename \"auto_upgrade\";\\n"
fi
printf "\\t\\toption host-name \"%s\"\\n" "$hostname"
printf "\\t\\toption host-name \"%s\";\\n" "$hostname"
printf "\\t}\\n"
clear_variables
done