Skip to content

Commit

Permalink
[syncd-brcm]: update pre-emphasis load in start.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Wirut Getbamrung committed Oct 21, 2020
1 parent a01897c commit befd2ca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions platform/broadcom/docker-syncd-brcm/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit befd2ca

Please sign in to comment.