#! /bin/sh

set -e

dpkg --assert-support-predepends

if [ "$1" = "upgrade" -a -f /etc/init.d/klogd ]; then
    if [ -f /etc/init.d/klogd ]
    then
	set +e
	if [ -x /usr/sbin/invoke-rc.d ]
	then
	    invoke-rc.d klogd stop
	else
	    sh /etc/init.d/klogd stop
	fi
	set -e
    fi
fi

exit 0
