From: Adolf Belka Date: Thu, 11 Apr 2024 15:01:05 +0000 (+0200) Subject: azure-setup: Fixes bug12763 X-Git-Tag: v2.29-core186~75 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1db5f96c5ebbb2074c9c0a3edf29866c4769da11;p=ipfire-2.x.git azure-setup: Fixes bug12763 - This ensures that all ip route and ip rule commands are redirected to null if the output is not used to feed into a variable. - This will prevent any error messages related to empty iproute tables being displayed during boot if an empty table is accessed. Fixes: Bug#12763 Tested-by: Adolf Belka Signed-off-by: Adolf Belka Signed-off-by: Arne Fitzenreiter --- diff --git a/src/initscripts/helper/azure-setup b/src/initscripts/helper/azure-setup index 7a4422a353..eff963a4b1 100644 --- a/src/initscripts/helper/azure-setup +++ b/src/initscripts/helper/azure-setup @@ -298,7 +298,7 @@ case "${reason}" in ip addr add "${new_ip_address}/${new_subnet_mask}" dev "${interface}" # Add the default route - ip route add default via "${new_routers}" + ip route add default via "${new_routers}" >/dev/null 2>&1 # Setup DNS for domain_name_server in ${new_domain_name_servers}; do