#! /bin/sh

set -e

if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/klogd ]
then
    rm -f /usr/doc/klogd
fi

if [ "$1" = "purge"  -o "$1" = "remove" ]
then
    if [ -x /usr/sbin/invoke-rc.d ]
    then
	invoke-rc.d klogd stop
    else
	sh /etc/init.d/klogd stop
    fi
fi

