Skip to content

Commit

Permalink
Find correct opennsl module name before stopping it (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-shirshov authored Feb 21, 2018
1 parent 1a1b071 commit b87ea44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/fast-reboot
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ systemctl stop docker.service
# Stop opennsl modules for Broadcom platform
if [ "$sonic_asic_type" = 'broadcom' ];
then
systemctl stop opennsl-modules-3.16.0-4-amd64.service
service_name=$(systemctl list-units --plain --no-pager --no-legend --type=service | grep opennsl | cut -f 1 -d' ')
systemctl stop "$service_name"
fi

# Wait until all buffers synced with disk
Expand Down

0 comments on commit b87ea44

Please sign in to comment.