public inbox for network@lists.ipfire.org
 help / color / mirror / Atom feed
* [PATCH] dhcp: remove useless delay setting
@ 2017-07-14 13:40 Jonatan Schlag
  2017-07-14 14:13 ` Michael Tremer
  0 siblings, 1 reply; 2+ messages in thread
From: Jonatan Schlag @ 2017-07-14 13:40 UTC (permalink / raw)
  To: network

[-- Attachment #1: Type: text/plain, Size: 948 bytes --]

Fixes: #11420

Signed-off-by: Jonatan Schlag <jonatan.schlag(a)ipfire.org>
---
 src/hooks/configs/dhcp | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/src/hooks/configs/dhcp b/src/hooks/configs/dhcp
index 5ac01b6..8bb6aa9 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_IPV6 ENABLE_IPV4"
+HOOK_CONFIG_SETTINGS="HOOK ENABLE_IPV6 ENABLE_IPV4"
 
 # Default settings.
-DELAY=0
 ENABLE_IPV6="on"
 ENABLE_IPV4="on"
 
 hook_check_config_settings() {
-	assert isset DELAY
-	assert isinteger DELAY
 	assert isset ENABLE_IPV6
 	assert isbool ENABLE_IPV6
 	assert isset ENABLE_IPV4
@@ -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-ipv6)
 				ENABLE_IPV6="on"
 				;;
-- 
2.6.3


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] dhcp: remove useless delay setting
  2017-07-14 13:40 [PATCH] dhcp: remove useless delay setting Jonatan Schlag
@ 2017-07-14 14:13 ` Michael Tremer
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Tremer @ 2017-07-14 14:13 UTC (permalink / raw)
  To: network

[-- Attachment #1: Type: text/plain, Size: 1266 bytes --]

Hi,

merged. I also removed the lines that actually used this from the
dhclient-script. However, it didn't do anything since the hook config
was never read.

Best,
-Michael

On Fri, 2017-07-14 at 15:40 +0200, Jonatan Schlag wrote:
> Fixes: #11420
> 
> Signed-off-by: Jonatan Schlag <jonatan.schlag(a)ipfire.org>
> ---
>  src/hooks/configs/dhcp | 8 +-------
>  1 file changed, 1 insertion(+), 7 deletions(-)
> 
> diff --git a/src/hooks/configs/dhcp b/src/hooks/configs/dhcp
> index 5ac01b6..8bb6aa9 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_IPV6 ENABLE_IPV4"
> +HOOK_CONFIG_SETTINGS="HOOK ENABLE_IPV6 ENABLE_IPV4"
>  
>  # Default settings.
> -DELAY=0
>  ENABLE_IPV6="on"
>  ENABLE_IPV4="on"
>  
>  hook_check_config_settings() {
> -	assert isset DELAY
> -	assert isinteger DELAY
>  	assert isset ENABLE_IPV6
>  	assert isbool ENABLE_IPV6
>  	assert isset ENABLE_IPV4
> @@ -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-ipv6)
>  				ENABLE_IPV6="on"
>  				;;

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-07-14 14:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-14 13:40 [PATCH] dhcp: remove useless delay setting Jonatan Schlag
2017-07-14 14:13 ` Michael Tremer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox