#!/bin/sh
# post remove script for the Debian GNU/Linux modutils package

set -e

if [ "$1" = "remove"  -o "$1" = "purge" ]; then
	dpkg-divert --package modutils --remove --rename \
			--divert /usr/include/linux/kerneld.h.libc6 \
				/usr/include/linux/kerneld.h
fi

if [ "$1" = "purge" ]; then
  update-rc.d kerneld remove >/dev/null
  rm -f /etc/conf.modules
fi


