From befd2ca71de785a66e8e0b0f75c79ede4ceeea56 Mon Sep 17 00:00:00 2001 From: Wirut Getbamrung Date: Wed, 21 Oct 2020 14:22:07 +0700 Subject: [PATCH] [syncd-brcm]: update pre-emphasis load in start.sh --- platform/broadcom/docker-syncd-brcm/start.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platform/broadcom/docker-syncd-brcm/start.sh b/platform/broadcom/docker-syncd-brcm/start.sh index 589a0b851ec8..9de2544cb861 100755 --- a/platform/broadcom/docker-syncd-brcm/start.sh +++ b/platform/broadcom/docker-syncd-brcm/start.sh @@ -9,6 +9,7 @@ SYNCD_SOCKET_FILE=/var/run/sswsyncd/sswsyncd.socket wait_syncd() { while true; do if [ -e ${SYNCD_SOCKET_FILE} ]; then + socket_created=true break fi sleep 1 @@ -39,13 +40,13 @@ fi supervisorctl start syncd # If this platform has a pre_emphasis setting file, load it -if [[ -r $HWSKU_DIR/pre-emphasis_PAM4_optics.soc ]]; then +if [[ -r $HWSKU_DIR/pre-emphasis_PAM4_optics.soc && ! -f /var/warmboot/warm-starting ]]; then wait_syncd /usr/bin/bcmcmd -t 60 "rcload $HWSKU_DIR/pre-emphasis_PAM4_optics.soc" fi # If this platform has an initialization file for the Broadcom LED microprocessor, load it if [[ -r ${PLATFORM_DIR}/led_proc_init.soc && ! -f /var/warmboot/warm-starting ]]; then - wait_syncd + [[ -z "$socket_created" ]] && wait_syncd supervisorctl start ledinit fi