postinst 800 Bytes
Newer Older
1 2 3
#! /bin/sh
set -e

4 5 6
if dpkg-maintscript-helper supports rm_conffile; then
        dpkg-maintscript-helper rm_conffile \
                /etc/udev/pcmcia.rules 015-1+b100 -- "$@"
7 8
        dpkg-maintscript-helper rm_conffile \
                /etc/init.d/pcmciautils 015-1+b100 -- "$@"
9 10
fi

11 12
case $1 in
	configure)
13 14 15 16 17
        	if dpkg --compare-versions "$2" le 015-1+b100 &&
                        [ -h /etc/udev/rules.d/85-pcmcia.rules ]; then
                        rm /etc/udev/rules.d/85-pcmcia.rules
                fi

18 19 20 21
        	if dpkg --compare-versions "$2" le 015-1+b100; then
                	update-rc.d pcmciautils remove >/dev/null
                fi

22
		if [ ! -f /etc/pcmcia/config.opts ]; then
23
			cp -a /usr/lib/pcmciautils/config.opts /etc/pcmcia/
24
		fi
25
                ;;
26 27 28
esac

#DEBHELPER#