Skip to content

Commit

Permalink
add fast-reboot support for nephos platform by stop kernel modules (s…
Browse files Browse the repository at this point in the history
…onic-net#220)

* add fast-reboot support for nephos platform by stop kernel modules
  • Loading branch information
simonJi2018 authored and pavel-shirshov committed Mar 22, 2018
1 parent bf8d2b4 commit 5918f67
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/fast-reboot
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5918f67

Please sign in to comment.