Set 24h lease time if settings was empty before

This commit is contained in:
DL6ER 2017-01-02 11:05:40 +01:00
parent 85f0241c0d
commit 677694b01a
No known key found for this signature in database
GPG key ID: BB8EC0BC77973A30

View file

@ -191,6 +191,9 @@ ProcessDHCPSettings() {
if [[ "${DHCP_LEASETIME}" == "0" ]]; then if [[ "${DHCP_LEASETIME}" == "0" ]]; then
leasetime="infinite" leasetime="infinite"
elif [[ "${DHCP_LEASETIME}" == "" ]]; then
leasetime="24"
change_setting "DHCP_LEASETIME" "${leasetime}"
else else
leasetime="${DHCP_LEASETIME}h" leasetime="${DHCP_LEASETIME}h"
fi fi