summarylogtreecommitdiffstats
path: root/brother-dcpj925dw.install
blob: eaf62289aef4f8b6af8f2707f3e379fe5ab057a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
post_install() {
	# lpr
	/opt/brother/Printers/dcpj925dw/inf/setupPrintcapij dcpj925dw -i

	# cupswrapper
	/opt/brother/Printers/dcpj925dw/cupswrapper/cupswrapperdcpj925dw

	systemctl restart cups.service
}

post_upgrade() {
	/bin/true
}

pre_remove() {
	# lpr
	/opt/brother/Printers/dcpj925dw/inf/setupPrintcapij dcpj925dw -e

	# cupswrapper
	/opt/brother/Printers/dcpj925dw/cupswrapper/cupswrapperdcpj925dw -e
}

op=$1
shift

$op "$@"