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

post_upgrade() {
	/bin/true
}

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

op=$1
shift

$op "$@"