From: Michael Tremer Date: Fri, 10 May 2024 12:02:26 +0000 (+0000) Subject: ipsec-interfaces: Don't throw away errors when creating routes X-Git-Tag: v2.29-core186~22 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c522d8109dcfa95c5a9b054276cbfb768af51b69;p=ipfire-2.x.git ipsec-interfaces: Don't throw away errors when creating routes This partly reverts 87a97a431915849cf6d19e1b7137b4fb0b6dd91d. Signed-off-by: Michael Tremer Reviewed-by: Adolf Belka Signed-off-by: Arne Fitzenreiter --- diff --git a/src/scripts/ipsec-interfaces b/src/scripts/ipsec-interfaces index 974d3ac845..b05b2009c4 100644 --- a/src/scripts/ipsec-interfaces +++ b/src/scripts/ipsec-interfaces @@ -115,7 +115,7 @@ main() { # We are done when IPsec is not enabled if [ "${ENABLED}" = "on" ]; then # Enable route table lookup - ip rule add lookup "${ROUTE_TABLE}" prio "${ROUTE_TABLE_PRIO}" >/dev/null 2>&1 + ip rule add lookup "${ROUTE_TABLE}" prio "${ROUTE_TABLE_PRIO}" while IFS="," read -r "${VARS[@]}"; do # Check if the connection is enabled @@ -158,7 +158,7 @@ main() { log "Creating route to ${rightsubnet} (via ${address} and ${RED_INTF})" ip route add table "${ROUTE_TABLE}" "${rightsubnet}" proto static \ - dev "${RED_INTF}" src "${address}" >/dev/null 2>&1 + dev "${RED_INTF}" src "${address}" done # No interface processing required