[2/9] Revert "static-routes: Fixes bug12763"

Message ID 20240510120234.995049-2-michael.tremer@ipfire.org
State Staged
Commit bafa45ed843d2799136158caf6a31adadf648eb3
Headers
Series [1/9] ipsec-interfaces: Don't throw away errors when creating routes |

Commit Message

Michael Tremer May 10, 2024, 12:02 p.m. UTC
  This reverts commit e33ee46e621eb6967c954a9d3b4683880e372579.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
 src/initscripts/system/static-routes | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Comments

Adolf Belka May 10, 2024, 3:22 p.m. UTC | #1
Reviewed-by: Adolf Belka <adolf.belka@ipfire.org>

On 10/05/2024 14:02, Michael Tremer wrote:
> This reverts commit e33ee46e621eb6967c954a9d3b4683880e372579.
>
> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
> ---
>   src/initscripts/system/static-routes | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/initscripts/system/static-routes b/src/initscripts/system/static-routes
> index 9aacc8db5..9029c94db 100644
> --- a/src/initscripts/system/static-routes
> +++ b/src/initscripts/system/static-routes
> @@ -29,7 +29,7 @@ function init_table() {
>   		return
>   	fi
>   
> -	ip rule add table static >/dev/null 2>&1
> +	ip rule add table static
>   }
>   
>   function create_all_routes() {
> @@ -54,7 +54,7 @@ function create_all_routes() {
>   			continue
>   		fi
>   
> -		ip route add ${network} via ${gateway} table static proto static >/dev/null 2>&1
> +		ip route add ${network} via ${gateway} table static proto static
>   	done < ${file}
>   }
>
  

Patch

diff --git a/src/initscripts/system/static-routes b/src/initscripts/system/static-routes
index 9aacc8db5..9029c94db 100644
--- a/src/initscripts/system/static-routes
+++ b/src/initscripts/system/static-routes
@@ -29,7 +29,7 @@  function init_table() {
 		return
 	fi
 
-	ip rule add table static >/dev/null 2>&1
+	ip rule add table static
 }
 
 function create_all_routes() {
@@ -54,7 +54,7 @@  function create_all_routes() {
 			continue
 		fi
 
-		ip route add ${network} via ${gateway} table static proto static >/dev/null 2>&1
+		ip route add ${network} via ${gateway} table static proto static
 	done < ${file}
 }