summarylogtreecommitdiffstats
path: root/brother-dcpj552dw.install
blob: baa45a62daad594a2f5f1cd938d7f79ca265d050 (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/dcpj552dw/inf/setupPrintcapij dcpj552dw -i
	
	# cupswrapper
	/opt/brother/Printers/dcpj552dw/cupswrapper/cupswrapperdcpj552dw
	
	systemctl restart org.cups.cupsd
}

post_upgrade() {
	/bin/true
}

pre_remove() {
	# lpr
	/opt/brother/Printers/dcpj552dw/inf/setupPrintcapij dcpj552dw -e
	
	# cupswrapper
	/opt/brother/Printers/dcpj552dw/cupswrapper/cupswrapperdcpj552dw -e
}

op=$1
shift

$op "$@"