From 5918f6773f5a04aa1f4c29d2c39c5e23c79e5ee7 Mon Sep 17 00:00:00 2001 From: simonJi2018 <37395146+simonJi2018@users.noreply.github.com> Date: Fri, 23 Mar 2018 00:20:23 +0800 Subject: [PATCH] add fast-reboot support for nephos platform by stop kernel modules (#220) * add fast-reboot support for nephos platform by stop kernel modules --- scripts/fast-reboot | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/fast-reboot b/scripts/fast-reboot index d16af72fd48d..ab37cc4966d6 100755 --- a/scripts/fast-reboot +++ b/scripts/fast-reboot @@ -63,6 +63,12 @@ then systemctl stop "$service_name" fi +# Stop kernel modules for Nephos platform +if [[ "$sonic_asic_type" = 'nephos' ]]; +then + systemctl stop nps-modules-`uname -r`.service +fi + # Wait until all buffers synced with disk sync sleep 1