Skip to content

Commit

Permalink
Remove waitplatform() from syncd.sh
Browse files Browse the repository at this point in the history
Signed-off-by: vadymhlushko-mlnx <vadymh@nvidia.com>
  • Loading branch information
vadymhlushko-mlnx committed May 16, 2024
1 parent c118b2a commit c400723
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 17 deletions.
4 changes: 0 additions & 4 deletions files/scripts/gbsyncd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ function startplatform() {
done
}

function waitplatform() {
:
}

function stopplatform1() {
if ! docker top gbsyncd$DEV | grep -q /usr/bin/syncd; then
debug "syncd process in container gbsyncd$DEV is not running"
Expand Down
10 changes: 0 additions & 10 deletions files/scripts/syncd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,16 +92,6 @@ function startplatform() {
fi
}

function waitplatform() {

BOOT_TYPE=`getBootType`
if [[ x"$sonic_asic_platform" == x"mellanox" ]]; then
debug "Starting pmon service..."
/bin/systemctl start pmon
debug "Started pmon service"
fi
}

function stopplatform1() {

if [[ x$sonic_asic_platform == x"mellanox" ]] && [[ x$TYPE == x"cold" ]]; then
Expand Down
3 changes: 0 additions & 3 deletions files/scripts/syncd_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# scripts using this must provide implementations of the following functions:
#
# startplatform
# waitplatform
# stopplatform1 and stopplatform2
#
# For examples of these, see gbsyncd.sh and syncd.sh.
Expand Down Expand Up @@ -141,8 +140,6 @@ wait() {
fi
fi

waitplatform

/usr/bin/${SERVICE}.sh wait $DEV
}

Expand Down

0 comments on commit c400723

Please sign in to comment.