summaryrefslogtreecommitdiff
path: root/autoscripts/preinst-udev
blob: 9d90a355b5bf40f0f77cc1f0f9a6787f1556ec86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
if [ "$1" = install ] || [ "$1" = upgrade ]; then
	if [ -e "#OLD#" ]; then
		if [ "`md5sum \"#OLD#\" | sed -e \"s/ .*//\"`" = \
		     "`sed -n -e \"/^Conffiles:/,/^[^ ]/{\\\\' #OLD#'{s/.* //;p}}\" /var/lib/dpkg/status`" ]
		then
			rm -f "#OLD#"
		fi
	fi
	if [ -L "#RULE#" ]; then
		rm -f "#RULE#"
	fi
fi