sonic-buildimage/platform/broadcom/sonic-platform-modules-juniper/qfx5200/utils/wrapper-fast-reboot
Ciju Rajan K 609cbdd0f3
[Juniper] Platform bug fixes / improvements (#5541)
* [Juniper] Platform bug fixes / improvements

This patch set introduces the following changes for
the two platforms.

 - QFX5210
   - Fixes a driver bug related to reboot notifier
   - Disable pcied
   - Introduces a wrapper script for fast / warm reboots
     for unloading the driver containing reboot handler
   - Support for PSM4 optics in media_settings

 - QFX5200
   - BCM configuration file updates
   - Bug fixes for EM policy
   - Fixes a driver bug related to reboot notifier
   - Introduces a wrapper script for fast / warm reboots
     for unloading the driver containing reboot handler
   - Disable pcied
   - Support for PSM4 optics

Signed-off-by: Ciju Rajan K <crajank@juniper.net>
2020-11-10 22:13:23 -08:00

18 lines
475 B
Bash
Executable File

#!/bin/bash
# Disable exit on non zero
set +e
# Unloading this module as it contains the reboot
# notifier hook. When the kexec is invoked with platform
# reset handlers, it results in a cold reboot. Removing
# the reset handlers ensures that kernel does a kexec
# based fast reboot
rmmod jnx-refpga-lpcm > /dev/null 2>&1
/usr/bin/qfx5200-fast-reboot/fast-reboot $@
# Re-load the module if the fast-reboot script returns
# here.
modprobe jnx-refpga-lpcm > /dev/null 2>&1