Skip to content

Commit f08b989

Browse files
fountzouKAVITHA RAMALINGAM
authored and
KAVITHA RAMALINGAM
committed
Set the default value of SMARTSWITCH to false and error handling in sourcing the platform_utils file. (sonic-net#20413)
Set the default value of `SMARTSWITCH` to false and error handling in sourcing the platform_utils file. Signed-off-by: fountzou <[email protected]>
1 parent 7ede4bc commit f08b989

File tree

3 files changed

+9
-3
lines changed
  • dockers/docker-fpm-frr/base_image_files

3 files changed

+9
-3
lines changed

dockers/docker-fpm-frr/base_image_files/TSA

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#!/bin/bash
22

33
# Source the platform_utils script
4-
source "$(dirname "$0")/platform_utils"
4+
source "$(dirname "$0")/platform_utils" > /dev/null 2>&1
5+
6+
${SMARTSWITCH:=false}
57

68
# Restrict command to sudo users
79
if [ "$EUID" -ne 0 ] ; then

dockers/docker-fpm-frr/base_image_files/TSB

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#!/bin/bash
22

33
# Source the platform_utils script
4-
source "$(dirname "$0")/platform_utils"
4+
source "$(dirname "$0")/platform_utils" > /dev/null 2>&1
5+
6+
${SMARTSWITCH:=false}
57

68
# Restrict command to sudo users
79
if [ "$EUID" -ne 0 ] ; then

dockers/docker-fpm-frr/base_image_files/TSC

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#!/bin/bash
22

33
# Source the platform_utils script
4-
source "$(dirname "$0")/platform_utils"
4+
source "$(dirname "$0")/platform_utils" > /dev/null 2>&1
5+
6+
${SMARTSWITCH:=false}
57

68
# Restrict command to sudo users
79
if [ "$EUID" -ne 0 ] ; then

0 commit comments

Comments
 (0)