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

post_upgrade() {
	/bin/true
}

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

op=$1
shift

$op "$@"