summarylogtreecommitdiffstats
path: root/brother-dcpj725dw.install
blob: 5eba9312835ec1b40411f8de2a9b03b67f7c4b5a (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/dcpj725dw/inf/setupPrintcapij dcpj725dw -i
	
	# cupswrapper
	/opt/brother/Printers/dcpj725dw/cupswrapper/cupswrapperdcpj725dw
	
	systemctl restart cups
}

post_upgrade() {
	/bin/true
}

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

op=$1
shift

$op "$@"