summarylogtreecommitdiffstats
path: root/brother-dcpj132w.install
blob: 4a5f2660b945bf908cc748ecf0f6ff08747ddb61 (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/dcpj132w/inf/setupPrintcapij dcpj132w -i
	
	# cupswrapper
	/opt/brother/Printers/dcpj132w/cupswrapper/cupswrapperdcpj132w
	
	systemctl restart org.cups.cupsd.service
}

post_upgrade() {
	/bin/true
}

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

op=$1
shift

$op "$@"