#! /bin/sh
set -e

if dpkg-maintscript-helper supports rm_conffile; then
        dpkg-maintscript-helper rm_conffile \
                /etc/udev/pcmcia.rules 015-1+b100 -- "$@"
        dpkg-maintscript-helper rm_conffile \
                /etc/init.d/pcmciautils 015-1+b100 -- "$@"
fi

case $1 in
	purge)
		rm -f /etc/default/pcmciautils
		rm -f /etc/udev/rules.d/60-pcmcia.rules
		rm -f /etc/pcmcia/config.opts /etc/pcmcia/config.opts~
		rmdir /etc/pcmcia || true
		;;
esac

#DEBHELPER#
