remove old code per review from @yubiuser and @dschaper

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
pull/4956/head
Adam Warner 2 years ago
parent 34b66002e9
commit b7b5ffa8dd
No known key found for this signature in database
GPG Key ID: 872950F3ECF2B173

@ -395,11 +395,6 @@ ProcessDHCPSettings() {
elif [[ "${DHCP_LEASETIME}" == "" ]]; then
leasetime="24h"
addOrEditKeyValPair "${setupVars}" "DHCP_LEASETIME" "24"
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="24h"
addOrEditKeyValPair "${setupVars}" "DHCP_LEASETIME" "24"
else
leasetime="${DHCP_LEASETIME}h"
fi

Loading…
Cancel
Save