Additional check to fix any existing cases of "24h" in setupVars.conf automatically.

Signed-off-by: Adam Warner <adamw@rner.email>
This commit is contained in:
Adam Warner 2017-07-28 19:40:13 +01:00
parent 4fb66e632f
commit 0a9965292c
No known key found for this signature in database
GPG key ID: 03843F6C65554B22

View file

@ -263,6 +263,11 @@ ProcessDHCPSettings() {
elif [[ "${DHCP_LEASETIME}" == "" ]]; then
leasetime="24"
change_setting "DHCP_LEASETIME" "${leasetime}"
elif [[ "${DHCP_LEASETIME}" == "24h" ]]; then
#Installation is affected by known bug, introduced in a previous version.
#This will automatically clean up setupVars.conf and remove the unnecessary "h"
leasetime="24"
change_setting "DHCP_LEASETIME" "${leasetime}"
else
leasetime="${DHCP_LEASETIME}h"
fi