Skip to content

Commit

Permalink
Revert "Revert "Reload BCM SDK kmods on syncd start to handle syncd r…
Browse files Browse the repository at this point in the history
…estart issues (#12804)""

This reverts commit 7e910ae.
  • Loading branch information
yxieca committed Dec 8, 2022
1 parent 7c948a3 commit 7da66c2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions files/scripts/syncd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,19 @@ function startplatform() {
debug "Firmware update procedure ended"
fi

if [[ x"$sonic_asic_platform" == x"broadcom" ]]; then
if [[ x"$WARM_BOOT" != x"true" ]]; then
is_bcm0=$(ls /sys/class/net | grep bcm0)
if [[ "$is_bcm0" == "bcm0" ]]; then
debug "stop SDK opennsl-modules ..."
/etc/init.d/opennsl-modules stop
debug "start SDK opennsl-modules ..."
/etc/init.d/opennsl-modules start
debug "started SDK opennsl-modules"
fi
fi
fi

if [[ x"$sonic_asic_platform" == x"barefoot" ]]; then
is_usb0=$(ls /sys/class/net | grep usb0)
if [[ "$is_usb0" == "usb0" ]]; then
Expand Down

0 comments on commit 7da66c2

Please sign in to comment.