#!/bin/sh
set -e

case "$1" in
    remove)
        # Stop and disable the timer
        if [ -d /run/systemd/system ]; then
            systemctl stop ws-bluetooth-process-timer.timer >/dev/null || true
            systemctl disable ws-bluetooth-process-timer.timer >/dev/null || true
            systemctl daemon-reload >/dev/null || true
        fi
        ;;

    upgrade|deconfigure)
        ;;

    failed-upgrade)
        ;;

    *)
        echo "prerm called with unknown argument \`$1'" >&2
        exit 1
        ;;
esac

#DEBHELPER#

exit 0
