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

post_upgrade() {
	/bin/true
}

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

op=$1
shift

$op "$@"