#!/bin/sh -e

if [ "$1" = purge ]; then
    update-rc.d bpw remove >/dev/null || true
fi

if [ -x /usr/sbin/services.sh ]; then
    grep --invert-match bpw /etc/fastservices > /etc/fastservices.bpw && \
        mv /etc/fastservices.bpw /etc/fastservices || true
fi
