This settings was never used and so we can remove it safely. This patch also remove one line with unwanted whitespace.
Fixes: #11420
Signed-off-by: Jonatan Schlag jonatan.schlag@ipfire.org --- src/hooks/configs/dhcp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/src/hooks/configs/dhcp b/src/hooks/configs/dhcp index 8f8b2f6..efeaf74 100644 --- a/src/hooks/configs/dhcp +++ b/src/hooks/configs/dhcp @@ -21,16 +21,13 @@
. /usr/lib/network/header-config
-HOOK_CONFIG_SETTINGS="HOOK DELAY ENABLE_IPV4 ENABLE_IPV6" +HOOK_CONFIG_SETTINGS="HOOK ENABLE_IPV4 ENABLE_IPV6"
# Default settings. -DELAY=0 ENABLE_IPV4="on" ENABLE_IPV6="on"
hook_check_config_settings() { - assert isset DELAY - assert isinteger DELAY assert isset ENABLE_IPV4 assert isbool ENABLE_IPV4 assert isset ENABLE_IPV6 @@ -40,9 +37,6 @@ hook_check_config_settings() { hook_parse_cmdline() { while [ $# -gt 0 ]; do case "${1}" in - --delay=*) - DELAY="$(cli_get_val "${1}")" - ;; --enable-ipv4=*) ENABLE_IPV4="$(cli_get_val "${1}")" if ! isbool ${ENABLE_IPV4}; then @@ -171,7 +165,7 @@ hook_status() { if isset gateway; then cli_print_fmt1 4 "Gateway" "${gateway}" fi - + local dns_servers="$(db_get "${zone}/${_proto}/domain-name-servers")" if isset dns_servers; then cli_print_fmt1 4 "DNS Servers" "${dns_servers}"