summaryrefslogtreecommitdiffstats
path: root/print/cups-lpr/pkg-install
blob: 12cf40d376708efdbb67d4f76bc65c009fa320bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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-INSTALL)
	for FILE in ${REPLACES_BINARIES}; do
		[ -e "${FILE}" ] && mv "${FILE}" "${FILE}.bak"
	done
;;
esac
exit 0
OpenPOWER on IntegriCloud