#!/bin/sh
# Stop hciattach before system suspend to not interfere with
# freshly reset card after resume.
#
# No need to start it back here as it gets restarted automatically
# because of RequiredBy relation in its systemd unit.
case "${1}/${2}" in
        hibernate|suspend|pre*)
                systemctl stop bluetooth-brcmfmac.service
                ;;
esac
