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

post_upgrade() {
	/bin/true
}

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

op=$1
shift

$op "$@"