diff --git a/files/scripts/syncd.sh b/files/scripts/syncd.sh index 93c01f10931..ee6d077e4c6 100755 --- a/files/scripts/syncd.sh +++ b/files/scripts/syncd.sh @@ -155,16 +155,11 @@ stop() { # platform specific tasks - # stop mellanox driver regardless of - # shutdown type - if [ x$sonic_asic_platform == x'mellanox' ]; then - /etc/init.d/sxdkernel stop - /usr/bin/mst stop - fi - - if [[ x"$WARM_BOOT" != x"true" ]]; then - if [ x$sonic_asic_platform == x'cavium' ]; then + if [ x$sonic_asic_platform == x'mellanox' ]; then + /etc/init.d/sxdkernel stop + /usr/bin/mst stop + elif [ x$sonic_asic_platform == x'cavium' ]; then /etc/init.d/xpnet.sh stop /etc/init.d/xpnet.sh start fi