summaryrefslogtreecommitdiffstats
path: root/print/cups-lpr/pkg-deinstall
blob: 8cfdb58f98d11175080ac185cbc24fd4d22190b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

REPLACES_BINARIES="/usr/bin/lpr
					/usr/bin/lp
					/usr/bin/lpq
					/usr/bin/lprm
					/usr/bin/lpstat
					/usr/sbin/lpc"

case $2 in
POST-DEINSTALL)
	for FILE in ${REPLACES_BINARIES}; do
		[ -L "${FILE}" ] && rm "${FILE}"
		[ -e "${FILE}.bak" ] && mv "${FILE}.bak" "${FILE}"
	done
;;
esac
exit 0
OpenPOWER on IntegriCloud