From c2f88d0da05bdd839e75f884cea7040d26dcdb86 Mon Sep 17 00:00:00 2001 From: fountzou <169114916+fountzou@users.noreply.github.com> Date: Wed, 23 Oct 2024 21:22:42 +0300 Subject: [PATCH] Set the default value of `SMARTSWITCH` to false and error handling in sourcing the platform_utils file. (#20413) Set the default value of `SMARTSWITCH` to false and error handling in sourcing the platform_utils file. Signed-off-by: fountzou --- dockers/docker-fpm-frr/base_image_files/TSA | 4 +++- dockers/docker-fpm-frr/base_image_files/TSB | 4 +++- dockers/docker-fpm-frr/base_image_files/TSC | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/dockers/docker-fpm-frr/base_image_files/TSA b/dockers/docker-fpm-frr/base_image_files/TSA index 4f78cd58ce1c..68ee72337b70 100755 --- a/dockers/docker-fpm-frr/base_image_files/TSA +++ b/dockers/docker-fpm-frr/base_image_files/TSA @@ -1,7 +1,9 @@ #!/bin/bash # Source the platform_utils script -source "$(dirname "$0")/platform_utils" +source "$(dirname "$0")/platform_utils" > /dev/null 2>&1 + +${SMARTSWITCH:=false} # Restrict command to sudo users if [ "$EUID" -ne 0 ] ; then diff --git a/dockers/docker-fpm-frr/base_image_files/TSB b/dockers/docker-fpm-frr/base_image_files/TSB index 8c82796f18c1..f6f6d4044286 100755 --- a/dockers/docker-fpm-frr/base_image_files/TSB +++ b/dockers/docker-fpm-frr/base_image_files/TSB @@ -1,7 +1,9 @@ #!/bin/bash # Source the platform_utils script -source "$(dirname "$0")/platform_utils" +source "$(dirname "$0")/platform_utils" > /dev/null 2>&1 + +${SMARTSWITCH:=false} # Restrict command to sudo users if [ "$EUID" -ne 0 ] ; then diff --git a/dockers/docker-fpm-frr/base_image_files/TSC b/dockers/docker-fpm-frr/base_image_files/TSC index ccb6c7d6ea21..f991d0eec396 100755 --- a/dockers/docker-fpm-frr/base_image_files/TSC +++ b/dockers/docker-fpm-frr/base_image_files/TSC @@ -1,7 +1,9 @@ #!/bin/bash # Source the platform_utils script -source "$(dirname "$0")/platform_utils" +source "$(dirname "$0")/platform_utils" > /dev/null 2>&1 + +${SMARTSWITCH:=false} # Restrict command to sudo users if [ "$EUID" -ne 0 ] ; then