From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adolf Belka To: development@lists.ipfire.org Subject: [PATCH 8/9] gcp-setup: Fixes bug12763 Date: Thu, 11 Apr 2024 17:01:07 +0200 Message-ID: <20240411150108.21573-8-adolf.belka@ipfire.org> In-Reply-To: <20240411150108.21573-1-adolf.belka@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1622866984399846274==" List-Id: --===============1622866984399846274== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable - 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 --- src/initscripts/helper/gcp-setup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/initscripts/helper/gcp-setup b/src/initscripts/helper/gcp-se= tup index 4f5148c3e..8273b70b4 100644 --- a/src/initscripts/helper/gcp-setup +++ b/src/initscripts/helper/gcp-setup @@ -268,8 +268,8 @@ case "${reason}" in ip addr add "${new_ip_address}/${new_subnet_mask}" dev "${interface}" =20 # Add the default route - ip route add "${new_routers}" dev "${interface}" - ip route add default via "${new_routers}" + ip route add "${new_routers}" dev "${interface}" >/dev/null 2>&1 + ip route add default via "${new_routers}" >/dev/null 2>&1 =20 # Setup DNS for domain_name_server in ${new_domain_name_servers}; do --=20 2.44.0 --===============1622866984399846274==--